pub(crate) struct Epoch {
data: u64,
}Expand description
An epoch that can be marked as pinned or unpinned.
Internally, the epoch is represented as an integer that wraps around at some unspecified point and a flag that represents whether it is pinned or unpinned.
Fields§
§data: u64The least significant bit is set if pinned. The rest of the bits hold the epoch.
Implementations§
Trait Implementations§
impl Copy for Epoch
impl Eq for Epoch
impl StructuralPartialEq for Epoch
Auto Trait Implementations§
impl Freeze for Epoch
impl RefUnwindSafe for Epoch
impl Send for Epoch
impl Sync for Epoch
impl Unpin for Epoch
impl UnsafeUnpin for Epoch
impl UnwindSafe for Epoch
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