#[repr(u32)]pub enum AccessClass {
ReadOnce = 1,
Snapshot = 2,
Write = 3,
Poll = 4,
Sequence = 5,
Protocol = 6,
Interrupt = 7,
}Expand description
Access classes distinguished by policy. A grant for one class never authorizes another.
Variants§
Implementations§
Source§impl AccessClass
impl AccessClass
pub fn from_primitive(prim: u32) -> Option<AccessClass>
pub const fn into_primitive(self) -> u32
Trait Implementations§
Source§impl Clone for AccessClass
impl Clone for AccessClass
Source§fn clone(&self) -> AccessClass
fn clone(&self) -> AccessClass
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccessClass
Source§impl Debug for AccessClass
impl Debug for AccessClass
Source§impl<D> Decode<AccessClass, D> for AccessClasswhere
D: ResourceDialect,
impl<D> Decode<AccessClass, D> for AccessClasswhere
D: ResourceDialect,
Source§fn new_empty() -> AccessClass
fn new_empty() -> AccessClass
Creates a valid instance of
Self. The specific value does not matter,
since it will be overwritten by decode.Source§impl<D> Encode<AccessClass, D> for AccessClasswhere
D: ResourceDialect,
impl<D> Encode<AccessClass, D> for AccessClasswhere
D: ResourceDialect,
impl Eq for AccessClass
Source§impl Hash for AccessClass
impl Hash for AccessClass
Source§impl Ord for AccessClass
impl Ord for AccessClass
Source§fn cmp(&self, other: &AccessClass) -> Ordering
fn cmp(&self, other: &AccessClass) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AccessClass
impl PartialEq for AccessClass
Source§impl PartialOrd for AccessClass
impl PartialOrd for AccessClass
impl StructuralPartialEq for AccessClass
Source§impl TypeMarker for AccessClass
impl TypeMarker for AccessClass
Source§type Owned = AccessClass
type Owned = AccessClass
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 AccessClass
impl ValueTypeMarker for AccessClass
Source§type Borrowed<'a> = AccessClass
type Borrowed<'a> = AccessClass
The Rust type to use for encoding. This is a particular
Encode<Self>
type cheaply obtainable from &Self::Owned. There are three cases: Read moreSource§fn borrow(
value: &<AccessClass as TypeMarker>::Owned,
) -> <AccessClass as ValueTypeMarker>::Borrowed<'_>
fn borrow( value: &<AccessClass as TypeMarker>::Owned, ) -> <AccessClass as ValueTypeMarker>::Borrowed<'_>
Cheaply converts from
&Self::Owned to Self::Borrowed.Auto Trait Implementations§
impl Freeze for AccessClass
impl RefUnwindSafe for AccessClass
impl Send for AccessClass
impl Sync for AccessClass
impl Unpin for AccessClass
impl UnsafeUnpin for AccessClass
impl UnwindSafe for AccessClass
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