pub struct AcquireOptions {
pub max_wait: Duration,
pub deadline: Instant,
}Expand description
A wait preference and the enclosing local exchange deadline. Neither is part of durable acquisition identity; only the nonzero wait preference is sent over a transport. Every caller must keep its original deadline across probes.
Fields§
§max_wait: Duration§deadline: InstantImplementations§
Trait Implementations§
Source§impl Clone for AcquireOptions
impl Clone for AcquireOptions
impl Copy for AcquireOptions
Auto Trait Implementations§
impl Freeze for AcquireOptions
impl RefUnwindSafe for AcquireOptions
impl Send for AcquireOptions
impl Sync for AcquireOptions
impl Unpin for AcquireOptions
impl UnsafeUnpin for AcquireOptions
impl UnwindSafe for AcquireOptions
Blanket Implementations§
impl<T> ArtifactLease for T
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