#[repr(C)]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: boolTrait Implementations§
Source§impl Clone for MediaButtonsReport
impl Clone for MediaButtonsReport
Source§fn clone(&self) -> MediaButtonsReport
fn clone(&self) -> MediaButtonsReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MediaButtonsReport
Source§impl Debug for MediaButtonsReport
impl Debug for MediaButtonsReport
Source§impl<___E> Encode<MediaButtonsReport, ___E> for MediaButtonsReportwhere
___E: InternalHandleEncoder + ?Sized,
impl<___E> Encode<MediaButtonsReport, ___E> for MediaButtonsReportwhere
___E: InternalHandleEncoder + ?Sized,
Source§const COPY_OPTIMIZATION: CopyOptimization<MediaButtonsReport, MediaButtonsReport>
const COPY_OPTIMIZATION: CopyOptimization<MediaButtonsReport, MediaButtonsReport>
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<MediaButtonsReport>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<MediaButtonsReport>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
Source§impl<'a, ___E> Encode<MediaButtonsReport, ___E> for &'a MediaButtonsReportwhere
___E: InternalHandleEncoder + ?Sized,
impl<'a, ___E> Encode<MediaButtonsReport, ___E> for &'a MediaButtonsReportwhere
___E: InternalHandleEncoder + ?Sized,
Source§fn encode(
self,
encoder_: &mut ___E,
out_: &mut MaybeUninit<MediaButtonsReport>,
_: (),
) -> Result<(), EncodeError>
fn encode( self, encoder_: &mut ___E, out_: &mut MaybeUninit<MediaButtonsReport>, _: (), ) -> Result<(), EncodeError>
Encodes this value into an encoder and output.
§const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
const COPY_OPTIMIZATION: CopyOptimization<Self, W> = _
Source§impl<___E> EncodeOption<Box<'static, MediaButtonsReport>, ___E> for MediaButtonsReport
impl<___E> EncodeOption<Box<'static, MediaButtonsReport>, ___E> for MediaButtonsReport
Source§fn encode_option(
this: Option<MediaButtonsReport>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, MediaButtonsReport>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<MediaButtonsReport>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, MediaButtonsReport>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
Source§impl<'a, ___E> EncodeOption<Box<'static, MediaButtonsReport>, ___E> for &'a MediaButtonsReport
impl<'a, ___E> EncodeOption<Box<'static, MediaButtonsReport>, ___E> for &'a MediaButtonsReport
Source§fn encode_option(
this: Option<&'a MediaButtonsReport>,
encoder: &mut ___E,
out: &mut MaybeUninit<Box<'static, MediaButtonsReport>>,
_: (),
) -> Result<(), EncodeError>
fn encode_option( this: Option<&'a MediaButtonsReport>, encoder: &mut ___E, out: &mut MaybeUninit<Box<'static, MediaButtonsReport>>, _: (), ) -> Result<(), EncodeError>
Encodes this optional value into an encoder and output.
impl Eq for MediaButtonsReport
Source§impl FromWire<MediaButtonsReport> for MediaButtonsReport
impl FromWire<MediaButtonsReport> for MediaButtonsReport
Source§const COPY_OPTIMIZATION: CopyOptimization<MediaButtonsReport, MediaButtonsReport>
const COPY_OPTIMIZATION: CopyOptimization<MediaButtonsReport, MediaButtonsReport>
Source§fn from_wire(wire: MediaButtonsReport) -> MediaButtonsReport
fn from_wire(wire: MediaButtonsReport) -> MediaButtonsReport
Converts the given owned value to this type.
Source§impl FromWireRef<MediaButtonsReport> for MediaButtonsReport
impl FromWireRef<MediaButtonsReport> for MediaButtonsReport
Source§fn from_wire_ref(wire: &MediaButtonsReport) -> MediaButtonsReport
fn from_wire_ref(wire: &MediaButtonsReport) -> MediaButtonsReport
Converts the given reference to this type.
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 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for MediaButtonsReport
impl PartialEq for MediaButtonsReport
Source§impl PartialOrd for MediaButtonsReport
impl PartialOrd 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 UnsafeUnpin for MediaButtonsReport
impl UnwindSafe for MediaButtonsReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
impl<T, W> FromWireOption<Box<'_, W>> for Twhere
T: FromWire<W>,
§fn from_wire_option(wire: Box<'_, W>) -> Option<T>
fn from_wire_option(wire: Box<'_, W>) -> Option<T>
Converts the given owned value to an option of this type.
§impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
impl<T, W> FromWireOptionRef<Box<'_, W>> for Twhere
T: FromWireRef<W>,
§fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
fn from_wire_option_ref(wire: &Box<'_, W>) -> Option<T>
Converts the given reference to an option of this type.
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
Converts the given service transport handle of type
T to [Self]