pub enum TcpSegmentBuildError {
MissingSourcePort,
MissingDestinationPort,
InvalidOptionsLength,
SegmentLengthTooLarge,
BufferTooShort {
required: usize,
available: usize,
},
}Expand description
Failure to construct a TCP segment in caller-provided storage.
Variants§
MissingSourcePort
The source port was not supplied.
MissingDestinationPort
The destination port was not supplied.
InvalidOptionsLength
Options are not a multiple of four octets or exceed forty octets.
SegmentLengthTooLarge
The requested segment length cannot be represented as a usize.
BufferTooShort
The buffer cannot hold the requested segment.
Trait Implementations§
Source§impl Clone for TcpSegmentBuildError
impl Clone for TcpSegmentBuildError
impl Copy for TcpSegmentBuildError
Source§impl Debug for TcpSegmentBuildError
impl Debug for TcpSegmentBuildError
Source§impl Display for TcpSegmentBuildError
impl Display for TcpSegmentBuildError
impl Eq for TcpSegmentBuildError
Source§impl PartialEq for TcpSegmentBuildError
impl PartialEq for TcpSegmentBuildError
impl StructuralPartialEq for TcpSegmentBuildError
Auto Trait Implementations§
impl Freeze for TcpSegmentBuildError
impl RefUnwindSafe for TcpSegmentBuildError
impl Send for TcpSegmentBuildError
impl Sync for TcpSegmentBuildError
impl Unpin for TcpSegmentBuildError
impl UnsafeUnpin for TcpSegmentBuildError
impl UnwindSafe for TcpSegmentBuildError
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