pub enum WritePermit {
JustWrite,
GrowThenWrite,
Spin,
}
Expand description
Defines the action that the pinned concurrent collection must take on a write request to a given position, or to a given range of positions.
Variants§
JustWrite
Concurrent collection is allowed to directly write to the positions without any delay.
GrowThenWrite
Concurrent collection needs to grow to perform the write request. Furthermore, the caller thread must take the responsibility of the allocation. Then, it is free to write the value or values.
Spin
The caller thread must spin and re-evaluate the write permit.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WritePermit
impl RefUnwindSafe for WritePermit
impl Send for WritePermit
impl Sync for WritePermit
impl Unpin for WritePermit
impl UnwindSafe for WritePermit
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