pub enum BeginKind {
Deferred,
Immediate,
Exclusive,
}Expand description
How an explicit BEGIN acquires its rights.
Variants§
Deferred
Take nothing until the first read or write needs it.
Immediate
Take the writer’s reservation now.
Exclusive
Take the write lock now, excluding readers too.
Implementations§
Trait Implementations§
impl Copy for BeginKind
impl Eq for BeginKind
impl StructuralPartialEq for BeginKind
Auto Trait Implementations§
impl Freeze for BeginKind
impl RefUnwindSafe for BeginKind
impl Send for BeginKind
impl Sync for BeginKind
impl Unpin for BeginKind
impl UnsafeUnpin for BeginKind
impl UnwindSafe for BeginKind
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