Struct etcd_client::LockOptions [−][src]
#[repr(transparent)]pub struct LockOptions(_);
Options for Lock operation.
Implementations
impl LockOptions[src]
impl LockOptions[src]pub const fn new() -> Self[src]
Creates a LockOptions.
pub const fn with_lease(self, lease: i64) -> Self[src]
lease is the ID of the lease that will be attached to ownership of the
lock. If the lease expires or is revoked and currently holds the lock,
the lock is automatically released. Calls to Lock with the same lease will
be treated as a single acquisition; locking twice with the same lease is a
no-op.
Trait Implementations
impl Clone for LockOptions[src]
impl Clone for LockOptions[src]fn clone(&self) -> LockOptions[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Default for LockOptions[src]
impl Default for LockOptions[src]fn default() -> LockOptions[src]
Auto Trait Implementations
impl RefUnwindSafe for LockOptions
impl RefUnwindSafe for LockOptionsimpl Send for LockOptions
impl Send for LockOptionsimpl Sync for LockOptions
impl Sync for LockOptionsimpl Unpin for LockOptions
impl Unpin for LockOptionsimpl UnwindSafe for LockOptions
impl UnwindSafe for LockOptionsBlanket Implementations
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
impl<T> Instrument for T[src]pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> IntoRequest<T> for T[src]
impl<T> IntoRequest<T> for T[src]pub fn into_request(self) -> Request<T>[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>, pub fn vzip(self) -> V
impl<T> WithSubscriber for T[src]
impl<T> WithSubscriber for T[src]pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>, [src]
S: Into<Dispatch>,