pub struct LeasedDelivery { /* private fields */ }Expand description
One delivery, handed out with the lease that holds it.
The two travel together because a caller needs both and reading the record back to find its lease would race the expiry that just handed the same delivery to somebody else.
Implementations§
Source§impl LeasedDelivery
impl LeasedDelivery
pub const fn new(lease: HostDeliveryLease, record: HostDeliveryRecord) -> Self
pub const fn lease(&self) -> &HostDeliveryLease
pub const fn record(&self) -> &HostDeliveryRecord
pub fn into_parts(self) -> (HostDeliveryLease, HostDeliveryRecord)
Trait Implementations§
Source§impl Clone for LeasedDelivery
impl Clone for LeasedDelivery
Source§impl Debug for LeasedDelivery
impl Debug for LeasedDelivery
impl Eq for LeasedDelivery
Source§impl PartialEq for LeasedDelivery
impl PartialEq for LeasedDelivery
impl StructuralPartialEq for LeasedDelivery
Auto Trait Implementations§
impl Freeze for LeasedDelivery
impl RefUnwindSafe for LeasedDelivery
impl Send for LeasedDelivery
impl Sync for LeasedDelivery
impl Unpin for LeasedDelivery
impl UnsafeUnpin for LeasedDelivery
impl UnwindSafe for LeasedDelivery
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