pub struct LockConfig {
pub timeout: Duration,
}Expand description
Nested lock configuration
Fields§
§timeout: DurationLock timeout duration
Trait Implementations§
Source§impl Clone for LockConfig
impl Clone for LockConfig
Source§fn clone(&self) -> LockConfig
fn clone(&self) -> LockConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 LockConfig
impl Debug for LockConfig
Source§impl Default for LockConfig
impl Default for LockConfig
Source§impl<'de> Deserialize<'de> for LockConfig
impl<'de> Deserialize<'de> for LockConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LockConfig
impl RefUnwindSafe for LockConfig
impl Send for LockConfig
impl Sync for LockConfig
impl Unpin for LockConfig
impl UnsafeUnpin for LockConfig
impl UnwindSafe for LockConfig
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