pub struct Fragmenter { /* private fields */ }
Expand description
A helper that is used to fragment a frame that would not fit in a single transmission unit.
Implementations§
Source§impl Fragmenter
impl Fragmenter
Sourcepub const fn new(mtu: usize) -> Self
pub const fn new(mtu: usize) -> Self
Creates a new instance of Fragmenter
.
§Parameters
mtu
- The maximum transmission unit (MTU) to fragment frames into.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Fragmenter
impl RefUnwindSafe for Fragmenter
impl Send for Fragmenter
impl Sync for Fragmenter
impl Unpin for Fragmenter
impl UnwindSafe for Fragmenter
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