Struct netstack3_core::tcp::BufferLimits
source · pub struct BufferLimits {
pub capacity: usize,
pub len: usize,
}
Expand description
Information about the number of bytes in a Buffer
.
Fields§
§capacity: usize
The total number of bytes that the buffer can hold.
len: usize
The number of readable bytes that the buffer currently holds.
Auto Trait Implementations§
impl Freeze for BufferLimits
impl RefUnwindSafe for BufferLimits
impl Send for BufferLimits
impl Sync for BufferLimits
impl Unpin for BufferLimits
impl UnwindSafe for BufferLimits
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
impl<Id, CC, BC> TimerHandler<BC, Id> for CCwhere
Id: HandleableTimer<CC, BC>,
source§fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
fn handle_timer(&mut self, bindings_ctx: &mut BC, id: Id)
Handle a timer firing.