pub enum Segment {
Syn(Syn),
Data(u64, Bytes),
Fin(u64),
Rst,
}
Expand description
This is a simplification of real TCP.
We implement just enough to ensure fidelity and provide knobs for real world scenarios, but we skip a ton of complexity (e.g. checksums, flow control, etc) because said complexity isn’t useful in tests.
Variants§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Segment
impl !RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl !UnwindSafe for Segment
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