#[repr(u8)]pub enum VirtconMode {
Inactive = 0,
Fallback = 1,
Forced = 2,
}
Variants§
Implementations§
source§impl VirtconMode
impl VirtconMode
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 VirtconMode
impl Clone for VirtconMode
source§fn clone(&self) -> VirtconMode
fn clone(&self) -> VirtconMode
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 VirtconMode
impl Debug for VirtconMode
source§impl Decode<VirtconMode> for VirtconMode
impl Decode<VirtconMode> for VirtconMode
source§impl Encode<VirtconMode> for VirtconMode
impl Encode<VirtconMode> for VirtconMode
source§impl Hash for VirtconMode
impl Hash for VirtconMode
source§impl Ord for VirtconMode
impl Ord for VirtconMode
source§fn cmp(&self, other: &VirtconMode) -> Ordering
fn cmp(&self, other: &VirtconMode) -> 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 VirtconMode
impl PartialEq for VirtconMode
source§fn eq(&self, other: &VirtconMode) -> bool
fn eq(&self, other: &VirtconMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for VirtconMode
impl PartialOrd for VirtconMode
source§fn partial_cmp(&self, other: &VirtconMode) -> Option<Ordering>
fn partial_cmp(&self, other: &VirtconMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl TypeMarker for VirtconMode
impl TypeMarker for VirtconMode
§type Owned = VirtconMode
type Owned = VirtconMode
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 VirtconMode
impl ValueTypeMarker for VirtconMode
§type Borrowed<'a> = VirtconMode
type Borrowed<'a> = VirtconMode
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 VirtconMode
impl Eq for VirtconMode
impl StructuralPartialEq for VirtconMode
Auto Trait Implementations§
impl Freeze for VirtconMode
impl RefUnwindSafe for VirtconMode
impl Send for VirtconMode
impl Sync for VirtconMode
impl Unpin for VirtconMode
impl UnwindSafe for VirtconMode
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