pub enum WorkspaceLeaseMode {
SharedRead,
ExclusiveWrite,
}Expand description
Lease mode. Write leases conflict with overlapping read or write leases.
Variants§
Read access that tolerates other concurrent readers.
ExclusiveWrite
Write access that excludes any overlapping read or write lease.
Trait Implementations§
Source§impl Clone for WorkspaceLeaseMode
impl Clone for WorkspaceLeaseMode
Source§fn clone(&self) -> WorkspaceLeaseMode
fn clone(&self) -> WorkspaceLeaseMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkspaceLeaseMode
impl Debug for WorkspaceLeaseMode
impl Eq for WorkspaceLeaseMode
Source§impl PartialEq for WorkspaceLeaseMode
impl PartialEq for WorkspaceLeaseMode
Source§fn eq(&self, other: &WorkspaceLeaseMode) -> bool
fn eq(&self, other: &WorkspaceLeaseMode) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WorkspaceLeaseMode
Auto Trait Implementations§
impl Freeze for WorkspaceLeaseMode
impl RefUnwindSafe for WorkspaceLeaseMode
impl Send for WorkspaceLeaseMode
impl Sync for WorkspaceLeaseMode
impl Unpin for WorkspaceLeaseMode
impl UnsafeUnpin for WorkspaceLeaseMode
impl UnwindSafe for WorkspaceLeaseMode
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