#[repr(u8)]pub enum SystemStatus {
PowerOn = 0,
PowerOff = 1,
Unplugged = 2,
}
Expand description
Defined by AVRCP 1.6.2 section 6.7.2 (RegisterNotification).
Format for EVENT_SYSTEM_STATUS_CHANGED
.
Variants§
Implementations§
Source§impl SystemStatus
impl SystemStatus
pub fn from_primitive(prim: u8) -> Option<Self>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for SystemStatus
impl Clone for SystemStatus
Source§fn clone(&self) -> SystemStatus
fn clone(&self) -> SystemStatus
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 SystemStatus
impl Debug for SystemStatus
Source§impl<D: ResourceDialect> Decode<SystemStatus, D> for SystemStatus
impl<D: ResourceDialect> Decode<SystemStatus, D> for SystemStatus
Source§impl<D: ResourceDialect> Encode<SystemStatus, D> for SystemStatus
impl<D: ResourceDialect> Encode<SystemStatus, D> for SystemStatus
Source§impl Hash for SystemStatus
impl Hash for SystemStatus
Source§impl Ord for SystemStatus
impl Ord for SystemStatus
Source§fn cmp(&self, other: &SystemStatus) -> Ordering
fn cmp(&self, other: &SystemStatus) -> 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 SystemStatus
impl PartialEq for SystemStatus
Source§impl PartialOrd for SystemStatus
impl PartialOrd for SystemStatus
Source§impl TypeMarker for SystemStatus
impl TypeMarker for SystemStatus
Source§type Owned = SystemStatus
type Owned = SystemStatus
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.Source§impl ValueTypeMarker for SystemStatus
impl ValueTypeMarker for SystemStatus
Source§type Borrowed<'a> = SystemStatus
type Borrowed<'a> = SystemStatus
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 SystemStatus
impl Eq for SystemStatus
impl StructuralPartialEq for SystemStatus
Auto Trait Implementations§
impl Freeze for SystemStatus
impl RefUnwindSafe for SystemStatus
impl Send for SystemStatus
impl Sync for SystemStatus
impl Unpin for SystemStatus
impl UnwindSafe for SystemStatus
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,
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
)