pub struct Inflights { /* private fields */ }Expand description
A buffer of inflight messages.
Implementations§
Source§impl Inflights
impl Inflights
Sourcepub fn set_cap(&mut self, incoming_cap: usize)
pub fn set_cap(&mut self, incoming_cap: usize)
Adjust inflight buffer capacity. Set it to 0 will disable the progress.
Sourcepub fn free_to(&mut self, to: u64)
pub fn free_to(&mut self, to: u64)
Frees the inflights smaller or equal to the given to flight.
Sourcepub fn free_first_one(&mut self)
pub fn free_first_one(&mut self)
Frees the first buffer entry.
Sourcepub fn maybe_free_buffer(&mut self)
pub fn maybe_free_buffer(&mut self)
Free unused memory
Trait Implementations§
impl Eq for Inflights
impl StructuralPartialEq for Inflights
Auto Trait Implementations§
impl Freeze for Inflights
impl RefUnwindSafe for Inflights
impl Send for Inflights
impl Sync for Inflights
impl Unpin for Inflights
impl UnwindSafe for Inflights
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