pub struct BlockWrite {
pub logical_block: u64,
pub offset_in_block: u32,
pub payload: Vec<u8>,
}Expand description
One unit of a data-block write. payload.len() <= block_size.
Fields§
§logical_block: u64Logical block number within the file (offset / block_size).
offset_in_block: u32Byte offset within the block where the payload starts (0..block_size).
payload: Vec<u8>Bytes to write. For a full-block write, payload.len() == block_size
and offset_in_block == 0.
Trait Implementations§
Source§impl Clone for BlockWrite
impl Clone for BlockWrite
Source§impl Debug for BlockWrite
impl Debug for BlockWrite
impl Eq for BlockWrite
Source§impl PartialEq for BlockWrite
impl PartialEq for BlockWrite
impl StructuralPartialEq for BlockWrite
Auto Trait Implementations§
impl Freeze for BlockWrite
impl RefUnwindSafe for BlockWrite
impl Send for BlockWrite
impl Sync for BlockWrite
impl Unpin for BlockWrite
impl UnsafeUnpin for BlockWrite
impl UnwindSafe for BlockWrite
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