pub struct MediaButtonsReport {
pub volume_up: bool,
pub volume_down: bool,
pub mic_mute: bool,
pub reset: bool,
pub pause: bool,
pub camera_disable: bool,
}
Expand description
MediaButtonsReport
describes the media buttons event delivered from the event stream.
Each bool in the report represents a single button where true means the button
is being pressed. A single report should be sent on every state change.
Fields§
§volume_up: bool
§volume_down: bool
§mic_mute: bool
§reset: bool
§pause: bool
§camera_disable: bool
Trait Implementations§
Source§impl Clone for MediaButtonsReport
impl Clone for MediaButtonsReport
Source§fn clone(&self) -> MediaButtonsReport
fn clone(&self) -> MediaButtonsReport
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MediaButtonsReport
impl Debug for MediaButtonsReport
Source§impl<D: ResourceDialect> Decode<MediaButtonsReport, D> for MediaButtonsReport
impl<D: ResourceDialect> Decode<MediaButtonsReport, D> for MediaButtonsReport
Source§impl<D: ResourceDialect> Encode<MediaButtonsReport, D> for &MediaButtonsReport
impl<D: ResourceDialect> Encode<MediaButtonsReport, D> for &MediaButtonsReport
Source§impl<D: ResourceDialect, T0: Encode<bool, D>, T1: Encode<bool, D>, T2: Encode<bool, D>, T3: Encode<bool, D>, T4: Encode<bool, D>, T5: Encode<bool, D>> Encode<MediaButtonsReport, D> for (T0, T1, T2, T3, T4, T5)
impl<D: ResourceDialect, T0: Encode<bool, D>, T1: Encode<bool, D>, T2: Encode<bool, D>, T3: Encode<bool, D>, T4: Encode<bool, D>, T5: Encode<bool, D>> Encode<MediaButtonsReport, D> for (T0, T1, T2, T3, T4, T5)
Source§impl Hash for MediaButtonsReport
impl Hash for MediaButtonsReport
Source§impl Ord for MediaButtonsReport
impl Ord for MediaButtonsReport
Source§fn cmp(&self, other: &MediaButtonsReport) -> Ordering
fn cmp(&self, other: &MediaButtonsReport) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MediaButtonsReport
impl PartialEq for MediaButtonsReport
Source§impl PartialOrd for MediaButtonsReport
impl PartialOrd for MediaButtonsReport
Source§impl TypeMarker for MediaButtonsReport
impl TypeMarker for MediaButtonsReport
Source§type Owned = MediaButtonsReport
type Owned = MediaButtonsReport
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
.§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 more§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.Source§impl ValueTypeMarker for MediaButtonsReport
impl ValueTypeMarker for MediaButtonsReport
Source§type Borrowed<'a> = &'a MediaButtonsReport
type Borrowed<'a> = &'a MediaButtonsReport
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read moreimpl Copy for MediaButtonsReport
impl Eq for MediaButtonsReport
impl Persistable for MediaButtonsReport
impl StructuralPartialEq for MediaButtonsReport
Auto Trait Implementations§
impl Freeze for MediaButtonsReport
impl RefUnwindSafe for MediaButtonsReport
impl Send for MediaButtonsReport
impl Sync for MediaButtonsReport
impl Unpin for MediaButtonsReport
impl UnwindSafe for MediaButtonsReport
Blanket Implementations§
§impl<T> Body for Twhere
T: Persistable,
impl<T> Body for Twhere
T: Persistable,
§type MarkerAtTopLevel = T
type MarkerAtTopLevel = T
The marker type to use when the body is at the top-level.
§type MarkerInResultUnion = T
type MarkerInResultUnion = T
The marker type to use when the body is nested in a result union.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)