#[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§
Source§impl TargetAvcError
impl TargetAvcError
pub fn from_primitive(prim: u32) -> Option<Self>
pub const fn into_primitive(self) -> u32
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
Source§impl Clone for TargetAvcError
impl Clone for TargetAvcError
Source§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 moreSource§impl Debug for TargetAvcError
impl Debug for TargetAvcError
Source§impl<D: ResourceDialect> Decode<TargetAvcError, D> for TargetAvcError
impl<D: ResourceDialect> Decode<TargetAvcError, D> for TargetAvcError
Source§impl<D: ResourceDialect> Encode<TargetAvcError, D> for TargetAvcError
impl<D: ResourceDialect> Encode<TargetAvcError, D> for TargetAvcError
Source§impl Hash for TargetAvcError
impl Hash for TargetAvcError
Source§impl Ord for TargetAvcError
impl Ord for TargetAvcError
Source§fn cmp(&self, other: &TargetAvcError) -> Ordering
fn cmp(&self, other: &TargetAvcError) -> 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 TargetAvcError
impl PartialEq for TargetAvcError
Source§impl PartialOrd for TargetAvcError
impl PartialOrd for TargetAvcError
Source§impl TypeMarker for TargetAvcError
impl TypeMarker for TargetAvcError
Source§type Owned = TargetAvcError
type Owned = TargetAvcError
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 TargetAvcError
impl ValueTypeMarker for TargetAvcError
Source§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 moreimpl 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
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
)