pub struct MediaButtonsEvent {
pub volume: Option<i8>,
pub mic_mute: Option<bool>,
pub pause: Option<bool>,
pub camera_disable: Option<bool>,
pub power: Option<bool>,
pub function: Option<bool>,
pub device_id: Option<u32>,
pub wake_lease: Option<EventPair>,
/* private fields */
}
Fields§
§volume: Option<i8>
§mic_mute: Option<bool>
§pause: Option<bool>
§camera_disable: Option<bool>
§power: Option<bool>
§function: Option<bool>
§device_id: Option<u32>
§wake_lease: Option<EventPair>
Optional wake lease for power baton passing.
Trait Implementations§
Source§impl Debug for MediaButtonsEvent
impl Debug for MediaButtonsEvent
Source§impl Decode<MediaButtonsEvent, DefaultFuchsiaResourceDialect> for MediaButtonsEvent
impl Decode<MediaButtonsEvent, DefaultFuchsiaResourceDialect> for MediaButtonsEvent
Source§impl Default for MediaButtonsEvent
impl Default for MediaButtonsEvent
Source§fn default() -> MediaButtonsEvent
fn default() -> MediaButtonsEvent
Returns the “default value” for a type. Read more
Source§impl Encode<MediaButtonsEvent, DefaultFuchsiaResourceDialect> for &mut MediaButtonsEvent
impl Encode<MediaButtonsEvent, DefaultFuchsiaResourceDialect> for &mut MediaButtonsEvent
Source§impl PartialEq for MediaButtonsEvent
impl PartialEq for MediaButtonsEvent
Source§impl ResourceTypeMarker for MediaButtonsEvent
impl ResourceTypeMarker for MediaButtonsEvent
Source§type Borrowed<'a> = &'a mut MediaButtonsEvent
type Borrowed<'a> = &'a mut MediaButtonsEvent
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &mut Self::Owned
. There are three cases: Read moreSource§fn take_or_borrow<'a>(
value: &'a mut <Self as TypeMarker>::Owned,
) -> Self::Borrowed<'a>
fn take_or_borrow<'a>( value: &'a mut <Self as TypeMarker>::Owned, ) -> Self::Borrowed<'a>
Cheaply converts from
&mut Self::Owned
to Self::Borrowed
. For
HandleBased
types this is “take” (it returns an owned handle and
replaces value
with Handle::invalid
), and for all other types it is
“borrow” (just converts from one reference to another).Source§impl TypeMarker for MediaButtonsEvent
impl TypeMarker for MediaButtonsEvent
Source§type Owned = MediaButtonsEvent
type Owned = MediaButtonsEvent
The owned Rust type which this FIDL type decodes into.
Source§fn inline_align(_context: Context) -> usize
fn inline_align(_context: Context) -> usize
Returns the minimum required alignment of the inline portion of the
encoded object. It must be a (nonzero) power of two.
Source§fn inline_size(_context: Context) -> usize
fn inline_size(_context: Context) -> usize
Returns the size of the inline portion of the encoded object, including
padding for alignment. Must be a multiple of
inline_align
.Source§fn encode_is_copy() -> bool
fn encode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and encoding requires no validation. When true, we can optimize
encoding arrays and vectors of Self::Owned
to a single memcpy. Read moreSource§fn decode_is_copy() -> bool
fn decode_is_copy() -> bool
Returns true if the memory layout of
Self::Owned
matches the FIDL wire
format and decoding requires no validation. When true, we can optimize
decoding arrays and vectors of Self::Owned
to a single memcpy.impl Standalone<DefaultFuchsiaResourceDialect> for MediaButtonsEvent
impl StructuralPartialEq for MediaButtonsEvent
Auto Trait Implementations§
impl Freeze for MediaButtonsEvent
impl RefUnwindSafe for MediaButtonsEvent
impl Send for MediaButtonsEvent
impl Sync for MediaButtonsEvent
impl Unpin for MediaButtonsEvent
impl UnwindSafe for MediaButtonsEvent
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more