pub struct BufLease { /* private fields */ }Expand description
Owns the buffer until explicitly dropped/released. May safely survive turns. Keeping all leases applies backpressure; it never allocates a new pool buffer.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for BufLease
impl !Send for BufLease
impl !Sync for BufLease
impl !UnwindSafe for BufLease
impl Freeze for BufLease
impl Unpin for BufLease
impl UnsafeUnpin for BufLease
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