pub struct Tlease {
pub duration: Duration,
}
Expand description
Representation of a mux Tlease
frame.
A Tlease
is a marker message that is issued to alert the client that
it has been allocated resources for a specific duration. In the abscence
of a Tlease
, the client assumes it holds an indefinate lease.
Adhering to the lease is optional but the server may reject requests or
operate at a degraded capacity under and expired lease.
Fields§
§duration: Duration
Duration
of the lease allocated to the client.
Trait Implementations§
impl Eq for Tlease
impl StructuralPartialEq for Tlease
Auto Trait Implementations§
impl Freeze for Tlease
impl RefUnwindSafe for Tlease
impl Send for Tlease
impl Sync for Tlease
impl Unpin for Tlease
impl UnwindSafe for Tlease
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