#[non_exhaustive]#[repr(u8)]pub enum RingEventFlags {
Enable = 0,
Disable = 1,
Desc = 2,
Reserved = 3,
}
Expand description
Descriptor Ring Change Event Flags
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enable = 0
Enable events
Disable = 1
Disable events
Desc = 2
Enable events for a specific descriptor (as specified by Descriptor Ring Change Event Offset/Wrap Counter). Only valid if VIRTIO_F_EVENT_IDX has been negotiated.
Reserved = 3
Trait Implementations§
Source§impl Clone for RingEventFlags
impl Clone for RingEventFlags
Source§fn clone(&self) -> RingEventFlags
fn clone(&self) -> RingEventFlags
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 RingEventFlags
impl Debug for RingEventFlags
Source§impl From<RingEventFlags> for u8
impl From<RingEventFlags> for u8
Source§fn from(enum_value: RingEventFlags) -> Self
fn from(enum_value: RingEventFlags) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RingEventFlags
impl PartialEq for RingEventFlags
Source§impl TryFrom<u8> for RingEventFlags
impl TryFrom<u8> for RingEventFlags
Source§type Error = TryFromPrimitiveError<RingEventFlags>
type Error = TryFromPrimitiveError<RingEventFlags>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for RingEventFlags
impl TryFromPrimitive for RingEventFlags
const NAME: &'static str = "RingEventFlags"
type Primitive = u8
type Error = TryFromPrimitiveError<RingEventFlags>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for RingEventFlags
impl Eq for RingEventFlags
impl StructuralPartialEq for RingEventFlags
Auto Trait Implementations§
impl Freeze for RingEventFlags
impl RefUnwindSafe for RingEventFlags
impl Send for RingEventFlags
impl Sync for RingEventFlags
impl Unpin for RingEventFlags
impl UnwindSafe for RingEventFlags
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