pub struct LockResult {
pub acquired: bool,
pub resource: String,
pub holder: Option<String>,
pub expires_unix_ms: Option<i64>,
}Expand description
Result of a lock acquisition attempt.
Fields§
§acquired: boolWhether the lock was successfully acquired.
resource: StringThe resource that was locked.
holder: Option<String>The current holder of the lock (if not acquired).
expires_unix_ms: Option<i64>When the lock expires (Unix timestamp in ms).
Trait Implementations§
Source§impl Clone for LockResult
impl Clone for LockResult
Source§fn clone(&self) -> LockResult
fn clone(&self) -> LockResult
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 moreAuto Trait Implementations§
impl Freeze for LockResult
impl RefUnwindSafe for LockResult
impl Send for LockResult
impl Sync for LockResult
impl Unpin for LockResult
impl UnwindSafe for LockResult
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