pub struct RxLease { /* private fields */ }Expand description
An RAII lease possibly keeping the system from suspension.
Yielded from Session::watch_rx_leases.
Dropping an RxLease relinquishes it.
Implementations§
Source§impl RxLease
impl RxLease
Sourcepub fn new(handle: DelegatedRxLeaseHandle) -> Self
pub fn new(handle: DelegatedRxLeaseHandle) -> Self
Creates a lease from a delegated lease handle.
Sourcepub fn inner(&self) -> &DelegatedRxLeaseHandle
pub fn inner(&self) -> &DelegatedRxLeaseHandle
Peeks the internal lease.
Trait Implementations§
Source§impl From<DelegatedRxLeaseHandle> for RxLease
impl From<DelegatedRxLeaseHandle> for RxLease
Source§fn from(handle: DelegatedRxLeaseHandle) -> Self
fn from(handle: DelegatedRxLeaseHandle) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RxLease
impl RefUnwindSafe for RxLease
impl Send for RxLease
impl Sync for RxLease
impl Unpin for RxLease
impl UnsafeUnpin for RxLease
impl UnwindSafe for RxLease
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