pub struct StripePlacement {
pub devid: u64,
pub physical: u64,
pub buf_offset: usize,
pub len: usize,
}Expand description
One per-device write or read produced by ChunkTreeCache::plan_write
or ChunkTreeCache::plan_read.
buf_offset..buf_offset + len is the slice of the caller’s buffer
that goes to this device at physical.
Fields§
§devid: u64Device id where this slice goes.
physical: u64Physical byte offset on the device.
buf_offset: usizeByte offset within the caller’s buffer where this slice starts.
len: usizeNumber of bytes to write (or read).
Trait Implementations§
Source§impl Clone for StripePlacement
impl Clone for StripePlacement
Source§fn clone(&self) -> StripePlacement
fn clone(&self) -> StripePlacement
Returns a duplicate 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 StripePlacement
impl Debug for StripePlacement
Source§impl PartialEq for StripePlacement
impl PartialEq for StripePlacement
impl Eq for StripePlacement
impl StructuralPartialEq for StripePlacement
Auto Trait Implementations§
impl Freeze for StripePlacement
impl RefUnwindSafe for StripePlacement
impl Send for StripePlacement
impl Sync for StripePlacement
impl Unpin for StripePlacement
impl UnsafeUnpin for StripePlacement
impl UnwindSafe for StripePlacement
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