Struct virtio_drivers::device::blk::RespStatus
source · pub struct RespStatus(/* private fields */);Expand description
Status of a VirtIOBlk request.
Implementations§
source§impl RespStatus
impl RespStatus
sourcepub const OK: RespStatus = _
pub const OK: RespStatus = _
Ok.
sourcepub const IO_ERR: RespStatus = _
pub const IO_ERR: RespStatus = _
IoErr.
sourcepub const UNSUPPORTED: RespStatus = _
pub const UNSUPPORTED: RespStatus = _
Unsupported yet.
sourcepub const NOT_READY: RespStatus = _
pub const NOT_READY: RespStatus = _
Not ready.
Trait Implementations§
source§impl AsBytes for RespStatus
impl AsBytes for RespStatus
source§impl Clone for RespStatus
impl Clone for RespStatus
source§fn clone(&self) -> RespStatus
fn clone(&self) -> RespStatus
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 RespStatus
impl Debug for RespStatus
source§impl From<RespStatus> for Result
impl From<RespStatus> for Result
source§fn from(status: RespStatus) -> Self
fn from(status: RespStatus) -> Self
Converts to this type from the input type.
source§impl FromBytes for RespStatus
impl FromBytes for RespStatus
source§fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
fn slice_from_prefix(bytes: &[u8], count: usize) -> Option<(&[Self], &[u8])>where
Self: Sized,
Interprets the prefix of the given
bytes as a &[Self] with length
equal to count without copying. Read moresource§fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
fn slice_from_suffix(bytes: &[u8], count: usize) -> Option<(&[u8], &[Self])>where
Self: Sized,
Interprets the suffix of the given
bytes as a &[Self] with length
equal to count without copying. Read moresource§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>
fn mut_slice_from_prefix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [Self], &mut [u8])>
Interprets the prefix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moresource§fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>
fn mut_slice_from_suffix( bytes: &mut [u8], count: usize, ) -> Option<(&mut [u8], &mut [Self])>
Interprets the suffix of the given
bytes as a &mut [Self] with length
equal to count without copying. Read moresource§impl FromZeroes for RespStatuswhere
u8: FromZeroes,
impl FromZeroes for RespStatuswhere
u8: FromZeroes,
source§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere
Self: Sized,
Creates an instance of
Self from zeroed bytes. Read moresource§fn new_box_zeroed() -> Box<Self>where
Self: Sized,
fn new_box_zeroed() -> Box<Self>where
Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read moresource§impl PartialEq for RespStatus
impl PartialEq for RespStatus
source§fn eq(&self, other: &RespStatus) -> bool
fn eq(&self, other: &RespStatus) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for RespStatus
impl Eq for RespStatus
impl StructuralPartialEq for RespStatus
Auto Trait Implementations§
impl Freeze for RespStatus
impl RefUnwindSafe for RespStatus
impl Send for RespStatus
impl Sync for RespStatus
impl Unpin for RespStatus
impl UnwindSafe for RespStatus
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)