pub struct WireBytesGuard { /* private fields */ }Expand description
Reservation for the raw backend allocation retained by an event.
Clones share one reservation because cloned Bytes values share the same
backing allocation. Dropping the final guard returns the bytes to the
connection-wide in-flight budget.
Implementations§
Source§impl WireBytesGuard
impl WireBytesGuard
Sourcepub fn retained_bytes(&self) -> usize
pub fn retained_bytes(&self) -> usize
Declared backend payload bytes covered by this reservation.
Trait Implementations§
Source§impl Clone for WireBytesGuard
impl Clone for WireBytesGuard
Auto Trait Implementations§
impl Forget for WireBytesGuard
impl Freeze for WireBytesGuard
impl Move for WireBytesGuard
impl RefUnwindSafe for WireBytesGuard
impl Send for WireBytesGuard
impl Sync for WireBytesGuard
impl Unpin for WireBytesGuard
impl UnsafeUnpin for WireBytesGuard
impl UnwindSafe for WireBytesGuard
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