pub struct Lock {
pub key: String,
pub ttl: u32,
}
Expand description
Actix message creates lock in cache backend.
Fields§
§key: String
Key of cache backend record for lock.
ttl: u32
Time-to-live for cache key lock record.
Trait Implementations§
Source§impl Message for Lock
impl Message for Lock
Source§type Result = Result<LockStatus, BackendError>
type Result = Result<LockStatus, BackendError>
The type of value that this message will resolved with if it is
successful.
impl StructuralPartialEq for Lock
Auto Trait Implementations§
impl Freeze for Lock
impl RefUnwindSafe for Lock
impl Send for Lock
impl Sync for Lock
impl Unpin for Lock
impl UnwindSafe for Lock
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