pub struct SegmentLengths { /* private fields */ }
Expand description
The length (in bytes) of data in a frame’s packet data and headroom segments.
Not to be confused with the frame_headroom
and mtu
, the
lengths here describe the amount of data that has been written to
either segment, either by the kernel or by the user. Hence they
vary as frames are used to send and receive data.
The two sets of values are related however, in that headroom
will always be less than or equal to frame_headroom
, and
data
less than or equal to mtu
.
Implementations
sourceimpl SegmentLengths
impl SegmentLengths
Trait Implementations
sourceimpl Clone for SegmentLengths
impl Clone for SegmentLengths
sourcefn clone(&self) -> SegmentLengths
fn clone(&self) -> SegmentLengths
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SegmentLengths
impl Debug for SegmentLengths
sourceimpl Default for SegmentLengths
impl Default for SegmentLengths
sourcefn default() -> SegmentLengths
fn default() -> SegmentLengths
Returns the “default value” for a type. Read more
impl Copy for SegmentLengths
Auto Trait Implementations
impl RefUnwindSafe for SegmentLengths
impl Send for SegmentLengths
impl Sync for SegmentLengths
impl Unpin for SegmentLengths
impl UnwindSafe for SegmentLengths
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more