Struct virtio_drivers::device::blk::RespStatus
source · #[repr(transparent)]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 RespStatuswhere
u8: AsBytes,
impl AsBytes for RespStatuswhere u8: AsBytes,
source§fn as_bytes_mut(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_bytes_mut(&mut self) -> &mut [u8]where Self: FromBytes,
Gets the bytes of this value mutably. Read more
source§fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_prefix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
source§fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where
B: ByteSliceMut,
fn write_to_suffix<B>(&self, bytes: B) -> Option<()>where B: ByteSliceMut,
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 RespStatuswhere
u8: FromBytes,
impl FromBytes for RespStatuswhere u8: FromBytes,
source§fn new_zeroed() -> Selfwhere
Self: Sized,
fn new_zeroed() -> Selfwhere Self: Sized,
Creates an instance of
Self from zeroed bytes.source§fn new_box_zeroed() -> Box<Self, Global>where
Self: Sized,
fn new_box_zeroed() -> Box<Self, Global>where Self: Sized,
Creates a
Box<Self> from zeroed bytes. Read moresource§impl PartialEq<RespStatus> for RespStatus
impl PartialEq<RespStatus> 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 StructuralEq for RespStatus
impl StructuralPartialEq for RespStatus
Auto Trait Implementations§
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