#[repr(u32)]pub enum BlockRequestType {
In = 0,
Out = 1,
Flush = 4,
GetId = 8,
Discard = 11,
WriteZeroes = 13,
}Expand description
VirtIO block request types.
Values sourced from virtio_bindings::virtio_blk::VIRTIO_BLK_T_*.
Variants§
In = 0
Read request.
Out = 1
Write request.
Flush = 4
Flush request.
GetId = 8
Get device ID.
Discard = 11
Discard request.
WriteZeroes = 13
Write zeroes request.
Trait Implementations§
Source§impl Clone for BlockRequestType
impl Clone for BlockRequestType
Source§fn clone(&self) -> BlockRequestType
fn clone(&self) -> BlockRequestType
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 BlockRequestType
Source§impl Debug for BlockRequestType
impl Debug for BlockRequestType
impl Eq for BlockRequestType
Source§impl PartialEq for BlockRequestType
impl PartialEq for BlockRequestType
Source§fn eq(&self, other: &BlockRequestType) -> bool
fn eq(&self, other: &BlockRequestType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlockRequestType
Source§impl TryFrom<u32> for BlockRequestType
impl TryFrom<u32> for BlockRequestType
Source§type Error = VirtioError
type Error = VirtioError
The type returned in the event of a conversion error.
Source§fn try_from(
value: u32,
) -> Result<BlockRequestType, <BlockRequestType as TryFrom<u32>>::Error>
fn try_from( value: u32, ) -> Result<BlockRequestType, <BlockRequestType as TryFrom<u32>>::Error>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for BlockRequestType
impl RefUnwindSafe for BlockRequestType
impl Send for BlockRequestType
impl Sync for BlockRequestType
impl Unpin for BlockRequestType
impl UnsafeUnpin for BlockRequestType
impl UnwindSafe for BlockRequestType
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more