Struct Entry
pub struct Entry { /* private fields */ }Expand description
One run. Four words: the ID hash; the run ID (48 bits), state and flags; the store offset (48 bits) and the low half of the frame length; the time (48 bits) and the high half of the length.
Implementations§
§impl Entry
impl Entry
pub fn new(run: RunId, id_hash: u64, state: u8) -> Self
pub fn id_hash(&self) -> u64
pub fn run(&self) -> RunId
pub fn state(&self) -> u8
pub fn set_state(&mut self, state: u8)
pub fn flags(&self) -> u8
pub fn has(&self, f: u8) -> bool
pub fn set(&mut self, f: u8, on: bool)
pub fn offset(&self) -> u64
pub fn len(&self) -> u32
pub fn is_empty(&self) -> bool
pub fn set_location(&mut self, offset: u64, len: u32)
pub fn time(&self) -> u64
pub fn time(&self) -> u64
Parked suspended: the earliest timer (0: none). Parked finished: the finish time. Loaded: the earliest timer not yet in the timing wheel.
pub fn set_time(&mut self, t: u64)
pub fn is_parked(&self) -> bool
pub fn from_record(bytes: &[u8]) -> Option<Self>
Trait Implementations§
impl Copy for Entry
impl Eq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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