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(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_prefix(&self, bytes: &mut [u8]) -> Option<()>
Source§fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>
fn write_to_suffix(&self, bytes: &mut [u8]) -> Option<()>
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§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 ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_prefix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
Source§fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
fn ref_from_suffix(bytes: &[u8]) -> Option<&Self>where
Self: Sized,
Source§fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_prefix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
Source§fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
fn mut_from_suffix(bytes: &mut [u8]) -> Option<&mut Self>where
Self: Sized + AsBytes,
Source§fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
fn slice_from(bytes: &[u8]) -> Option<&[Self]>where
Self: Sized,
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(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
fn mut_slice_from(bytes: &mut [u8]) -> Option<&mut [Self]>where
Self: Sized + AsBytes,
Source§fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
fn mut_slice_from_prefix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [Self], &mut [u8])>where
Self: Sized + AsBytes,
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])>where
Self: Sized + AsBytes,
fn mut_slice_from_suffix(
bytes: &mut [u8],
count: usize,
) -> Option<(&mut [u8], &mut [Self])>where
Self: Sized + AsBytes,
Interprets the suffix of the given
bytes
as a &mut [Self]
with length
equal to count
without copying. Read moreSource§fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_prefix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
Source§fn read_from_suffix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
fn read_from_suffix(bytes: &[u8]) -> Option<Self>where
Self: Sized,
Source§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§fn new_box_slice_zeroed(len: usize) -> Box<[Self]>where
Self: Sized,
fn new_box_slice_zeroed(len: usize) -> Box<[Self]>where
Self: Sized,
Creates a
Box<[Self]>
(a boxed slice) from zeroed bytes. Read moreSource§fn new_vec_zeroed(len: usize) -> Vec<Self>where
Self: Sized,
fn new_vec_zeroed(len: usize) -> Vec<Self>where
Self: Sized,
Creates a
Vec<Self>
from zeroed bytes. Read moreSource§impl PartialEq for RespStatus
impl PartialEq for RespStatus
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§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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
)