pub struct DirectSeg {
pub shard: usize,
pub file_off: u64,
pub slot_off: usize,
pub len: usize,
}Expand description
One file range of an expert’s slot image, for the direct miss path:
bytes slot_off..slot_off + len of the slot are file_off.. of shard.
Fields§
§shard: usize§file_off: u64§slot_off: usize§len: usizeTrait Implementations§
impl Copy for DirectSeg
impl Eq for DirectSeg
impl StructuralPartialEq for DirectSeg
Auto Trait Implementations§
impl Freeze for DirectSeg
impl RefUnwindSafe for DirectSeg
impl Send for DirectSeg
impl Sync for DirectSeg
impl Unpin for DirectSeg
impl UnwindSafe for DirectSeg
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.