Enum FolderType
#[repr(u8)]pub enum FolderType {
Mixed = 0,
Titles = 1,
Albums = 2,
Artists = 3,
Genres = 4,
Playlists = 5,
Years = 6,
}
Expand description
The folder type associated with a folder item. Defined by AVRCP 1.6.2 section 6.10.2.2.
Variants§
Implementations§
§impl FolderType
impl FolderType
pub fn from_primitive(prim: u8) -> Option<FolderType>
pub const fn into_primitive(self) -> u8
pub fn is_unknown(&self) -> bool
👎Deprecated: Strict enums should not use
is_unknown
Trait Implementations§
§impl Clone for FolderType
impl Clone for FolderType
§fn clone(&self) -> FolderType
fn clone(&self) -> FolderType
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 FolderType
impl Debug for FolderType
§impl<D> Decode<FolderType, D> for FolderTypewhere
D: ResourceDialect,
impl<D> Decode<FolderType, D> for FolderTypewhere
D: ResourceDialect,
§fn new_empty() -> FolderType
fn new_empty() -> FolderType
Creates a valid instance of
Self
. The specific value does not matter,
since it will be overwritten by decode
.§impl<D> Encode<FolderType, D> for FolderTypewhere
D: ResourceDialect,
impl<D> Encode<FolderType, D> for FolderTypewhere
D: ResourceDialect,
§impl Hash for FolderType
impl Hash for FolderType
§impl Ord for FolderType
impl Ord for FolderType
§impl PartialEq for FolderType
impl PartialEq for FolderType
§impl PartialOrd for FolderType
impl PartialOrd for FolderType
§impl TypeMarker for FolderType
impl TypeMarker for FolderType
§type Owned = FolderType
type Owned = FolderType
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 FolderType
impl ValueTypeMarker for FolderType
§type Borrowed<'a> = FolderType
type Borrowed<'a> = FolderType
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: &<FolderType as TypeMarker>::Owned,
) -> <FolderType as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<FolderType as TypeMarker>::Owned, ) -> <FolderType as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned
to Self::Borrowed
.impl Copy for FolderType
impl Eq for FolderType
impl StructuralPartialEq for FolderType
Auto Trait Implementations§
impl Freeze for FolderType
impl RefUnwindSafe for FolderType
impl Send for FolderType
impl Sync for FolderType
impl Unpin for FolderType
impl UnwindSafe for FolderType
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