pub struct Lease {
pub request: Request,
pub lease_id: LeaseId,
pub expires_at: Instant,
}Expand description
Temporary, linear ownership of a queued request.
This type deliberately does not implement Clone: exactly one of
RequestQueue::mark_handled, RequestQueue::reclaim, or
RequestQueue::abandon consumes it.
Fields§
§request: RequestLeased request.
lease_id: LeaseIdIdentifier used to renew this lease.
expires_at: InstantCurrent lease deadline.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lease
impl RefUnwindSafe for Lease
impl Send for Lease
impl Sync for Lease
impl Unpin for Lease
impl UnsafeUnpin for Lease
impl UnwindSafe for Lease
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