pub struct Fence { /* private fields */ }Expand description
Atomic resource-side high-water mark for fencing stale holders.
Implementations§
Source§impl Fence
impl Fence
pub const fn new() -> Self
pub const fn with_high_water(token: u64) -> Self
Sourcepub fn admit(&self, token: FenceToken) -> bool
pub fn admit(&self, token: FenceToken) -> bool
Admit this tenure unless a newer tenure was already observed.
pub fn high_water(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Fence
impl RefUnwindSafe for Fence
impl Send for Fence
impl Sync for Fence
impl Unpin for Fence
impl UnsafeUnpin for Fence
impl UnwindSafe for Fence
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