#[non_exhaustive]pub struct LockConfig {
pub locked: bool,
pub reason: String,
/* private fields */
}Expand description
Determines whether or no a connection is locked. If locked, a reason must be specified.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.locked: boolIndicates whether or not the connection is locked.
reason: StringDescribes why a connection is locked.
Implementations§
Source§impl LockConfig
impl LockConfig
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§fn default() -> LockConfig
fn default() -> LockConfig
Returns the “default value” for a type. Read more
Source§impl PartialEq for LockConfig
impl PartialEq for LockConfig
impl StructuralPartialEq for LockConfig
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