#[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
The wire type corresponding to MediaButtonsReport.
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 moreSource§impl Constrained for MediaButtonsReport
impl Constrained for MediaButtonsReport
Source§type Constraint = ()
type Constraint = ()
Type of constraint information for this type.
Source§fn validate(
_: Slot<'_, MediaButtonsReport>,
_: <MediaButtonsReport as Constrained>::Constraint,
) -> Result<(), ValidationError>
fn validate( _: Slot<'_, MediaButtonsReport>, _: <MediaButtonsReport as Constrained>::Constraint, ) -> Result<(), ValidationError>
Validate a slot of this type against a constraint. Can be called when
pointers/envelopes are just presence markers.
Source§impl Debug for MediaButtonsReport
impl Debug for MediaButtonsReport
Source§impl<___D> Decode<___D> for MediaButtonsReportwhere
___D: InternalHandleDecoder + ?Sized,
impl<___D> Decode<___D> for MediaButtonsReportwhere
___D: InternalHandleDecoder + ?Sized,
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, T0, T1, T2, T3, T4, T5> Encode<MediaButtonsReport, ___E> for MediaButtonsReport<T0, T1, T2, T3, T4, T5>
impl<___E, T0, T1, T2, T3, T4, T5> Encode<MediaButtonsReport, ___E> for MediaButtonsReport<T0, T1, T2, T3, T4, T5>
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 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 IntoNatural for MediaButtonsReport
impl IntoNatural for MediaButtonsReport
Source§type Natural = MediaButtonsReport
type Natural = MediaButtonsReport
A good default type for this wire type to convert into.
§fn into_natural(self) -> Self::Natural
fn into_natural(self) -> Self::Natural
Converts this type into its natural equivalent.
Source§impl Wire for MediaButtonsReport
impl Wire for MediaButtonsReport
Source§type Narrowed<'de> = MediaButtonsReport
type Narrowed<'de> = MediaButtonsReport
The narrowed wire type, restricted to the
'de lifetime.Source§fn zero_padding(out_: &mut MaybeUninit<MediaButtonsReport>)
fn zero_padding(out_: &mut MaybeUninit<MediaButtonsReport>)
Writes zeroes to the padding for this type, if any.
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> 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]