pub struct LockRequest {
pub acquire_timeout: u64,
pub hold_timeout: u64,
}Expand description
POST body of a lock acquire. Field order is the wire order, so the recorded request body is deterministic. The gateway answers a body-less acquire with a 500 NullPointerException (C1b, D9), so the client always sends this.
Fields§
§acquire_timeout: u64Seconds the gateway may wait for the lock. Never observed to wait: a competing acquire is an immediate 409 (D1).
hold_timeout: u64Seconds the lock is held before it expires on its own.
Trait Implementations§
Source§impl Clone for LockRequest
impl Clone for LockRequest
impl Copy for LockRequest
Source§impl Debug for LockRequest
impl Debug for LockRequest
impl Eq for LockRequest
Source§impl PartialEq for LockRequest
impl PartialEq for LockRequest
Source§impl Serialize for LockRequest
impl Serialize for LockRequest
impl StructuralPartialEq for LockRequest
Auto Trait Implementations§
impl Freeze for LockRequest
impl RefUnwindSafe for LockRequest
impl Send for LockRequest
impl Sync for LockRequest
impl Unpin for LockRequest
impl UnsafeUnpin for LockRequest
impl UnwindSafe for LockRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.