Enum TargetAvcError
#[repr(u32)]pub enum TargetAvcError {
RejectedInvalidCommand = 0,
RejectedInvalidParameter = 1,
RejectedParameterContentError = 2,
RejectedInternalError = 3,
RejectedUidChanged = 5,
RejectedInvalidPlayerId = 17,
RejectedNoAvailablePlayers = 21,
RejectedAddressedPlayerChanged = 22,
}
Expand description
Status codes for AVRCP specific AV/C commands. Defined in AVRCP 1.6.2 section 6.15.3, Table 6.49. Style note: named exactly as they are in Table 6.49 with the “REJECTED_” prefix.
Variants§
RejectedInvalidCommand = 0
RejectedInvalidParameter = 1
RejectedParameterContentError = 2
RejectedInternalError = 3
RejectedUidChanged = 5
RejectedInvalidPlayerId = 17
RejectedNoAvailablePlayers = 21
RejectedAddressedPlayerChanged = 22
Implementations§
§impl TargetAvcError
impl TargetAvcError
pub fn from_primitive(prim: u32) -> Option<TargetAvcError>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
§impl Clone for TargetAvcError
impl Clone for TargetAvcError
§fn clone(&self) -> TargetAvcError
fn clone(&self) -> TargetAvcError
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 more§impl Debug for TargetAvcError
impl Debug for TargetAvcError
§impl<D> Decode<TargetAvcError, D> for TargetAvcErrorwhere
D: ResourceDialect,
impl<D> Decode<TargetAvcError, D> for TargetAvcErrorwhere
D: ResourceDialect,
§fn new_empty() -> TargetAvcError
fn new_empty() -> TargetAvcError
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<TargetAvcError, D> for TargetAvcErrorwhere
D: ResourceDialect,
impl<D> Encode<TargetAvcError, D> for TargetAvcErrorwhere
D: ResourceDialect,
§impl Hash for TargetAvcError
impl Hash for TargetAvcError
§impl Ord for TargetAvcError
impl Ord for TargetAvcError
§impl PartialEq for TargetAvcError
impl PartialEq for TargetAvcError
§impl PartialOrd for TargetAvcError
impl PartialOrd for TargetAvcError
§impl TypeMarker for TargetAvcError
impl TypeMarker for TargetAvcError
§type Owned = TargetAvcError
type Owned = TargetAvcError
The owned Rust type which this FIDL type decodes into.
§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.
§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.§impl ValueTypeMarker for TargetAvcError
impl ValueTypeMarker for TargetAvcError
§type Borrowed<'a> = TargetAvcError
type Borrowed<'a> = TargetAvcError
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned
. There are three cases: Read more§fn borrow(
value: &<TargetAvcError as TypeMarker>::Owned,
) -> <TargetAvcError as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<TargetAvcError as TypeMarker>::Owned, ) -> <TargetAvcError as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for TargetAvcError
impl Eq for TargetAvcError
impl StructuralPartialEq for TargetAvcError
Auto Trait Implementations§
impl Freeze for TargetAvcError
impl RefUnwindSafe for TargetAvcError
impl Send for TargetAvcError
impl Sync for TargetAvcError
impl Unpin for TargetAvcError
impl UnwindSafe for TargetAvcError
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