#[repr(C)]pub struct WriteReply {
pub status: u32,
pub written: u32,
}Expand description
Write reply.
Wire layout: status @ 0..4, written @ 4..8.
Fields§
§status: u32Status code: 0 = success.
written: u32Number of bytes actually written.
Trait Implementations§
Source§impl Clone for WriteReply
impl Clone for WriteReply
Source§fn clone(&self) -> WriteReply
fn clone(&self) -> WriteReply
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 WriteReply
Source§impl Debug for WriteReply
impl Debug for WriteReply
Source§impl FromBytes for WriteReplywhere
u32: FromBytes,
impl FromBytes for WriteReplywhere
u32: FromBytes,
Source§impl FromZeros for WriteReplywhere
u32: FromZeros,
impl FromZeros for WriteReplywhere
u32: FromZeros,
impl Immutable for WriteReplywhere
u32: Immutable,
Source§impl IntoBytes for WriteReply
impl IntoBytes for WriteReply
§fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
fn as_mut_bytes(&mut self) -> &mut [u8]where
Self: FromBytes,
Gets the bytes of this value mutably. Read more
§fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>where
Self: Immutable,
Source§impl TryFromBytes for WriteReplywhere
u32: TryFromBytes,
impl TryFromBytes for WriteReplywhere
u32: TryFromBytes,
§fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_bytes(
source: &[u8],
) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_prefix(
source: &[u8],
) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
§fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
fn try_read_from_suffix(
source: &[u8],
) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>where
Self: Sized,
Auto Trait Implementations§
impl Freeze for WriteReply
impl RefUnwindSafe for WriteReply
impl Send for WriteReply
impl Sync for WriteReply
impl Unpin for WriteReply
impl UnsafeUnpin for WriteReply
impl UnwindSafe for WriteReply
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