#[repr(C)]pub struct WriteRequest {
pub ino: u64,
pub offset: u64,
pub data_hdr: InlineBlobHeader,
pub _pad: u32,
}Expand description
Write request with variable-length inline data.
Wire layout:
ino @ 0..8, offset @ 8..16, data_hdr @ 16..20, _pad @ 20..24,
data @ 24...
The data is variable-length and follows the header at offset 24.
Fields§
§ino: u64Inode number of the file to write.
offset: u64Byte offset in the file to start writing.
data_hdr: InlineBlobHeaderInlineBlobHeader describing the data that follows.
_pad: u32Trait Implementations§
Source§impl Clone for WriteRequest
impl Clone for WriteRequest
Source§fn clone(&self) -> WriteRequest
fn clone(&self) -> WriteRequest
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 WriteRequest
Source§impl Debug for WriteRequest
impl Debug for WriteRequest
Source§impl FromBytes for WriteRequest
impl FromBytes for WriteRequest
Source§impl FromZeros for WriteRequest
impl FromZeros for WriteRequest
impl Immutable for WriteRequest
Source§impl IntoBytes for WriteRequest
impl IntoBytes for WriteRequest
§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 WriteRequest
impl TryFromBytes for WriteRequest
§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 WriteRequest
impl RefUnwindSafe for WriteRequest
impl Send for WriteRequest
impl Sync for WriteRequest
impl Unpin for WriteRequest
impl UnsafeUnpin for WriteRequest
impl UnwindSafe for WriteRequest
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