pub enum LockResolution {
Wait,
NoWait,
}Expand description
Comportamento em caso de conflito de bloqueio (lock).
Variants§
Wait
Aguarda quando outro usuário segura um bloqueio necessário.
NoWait
Falha imediatamente quando há conflito de bloqueio.
Trait Implementations§
Source§impl Clone for LockResolution
impl Clone for LockResolution
Source§fn clone(&self) -> LockResolution
fn clone(&self) -> LockResolution
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 moreimpl Copy for LockResolution
Source§impl Debug for LockResolution
impl Debug for LockResolution
Source§impl Default for LockResolution
impl Default for LockResolution
Source§fn default() -> LockResolution
fn default() -> LockResolution
Returns the “default value” for a type. Read more
impl Eq for LockResolution
Source§impl PartialEq for LockResolution
impl PartialEq for LockResolution
Source§fn eq(&self, other: &LockResolution) -> bool
fn eq(&self, other: &LockResolution) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for LockResolution
Auto Trait Implementations§
impl Freeze for LockResolution
impl RefUnwindSafe for LockResolution
impl Send for LockResolution
impl Sync for LockResolution
impl Unpin for LockResolution
impl UnsafeUnpin for LockResolution
impl UnwindSafe for LockResolution
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