pub enum FragmentErrorKind {
PacketHeaderNotFound,
ExceededMaxFragments,
AlreadyProcessedFragment,
FragmentWithUnevenNumberOfFragments,
CouldNotFindFragmentById,
MultipleAckHeaders,
MissingAckHeader,
}Expand description
Errors that could occur with constructing/parsing fragment contents
Variants§
PacketHeaderNotFound
PacketHeader was not found in the packet
ExceededMaxFragments
Max number of allowed fragments has been exceeded
AlreadyProcessedFragment
This fragment was already processed
FragmentWithUnevenNumberOfFragments
Attempted to fragment with an incorrect number of fragments
CouldNotFindFragmentById
Fragment we expected to be able to find we couldn’t
MultipleAckHeaders
Multiple ack headers sent with these fragments
MissingAckHeader
Ack header is missing from a finished set of fragments
Trait Implementations§
Source§impl Clone for FragmentErrorKind
impl Clone for FragmentErrorKind
Source§fn clone(&self) -> FragmentErrorKind
fn clone(&self) -> FragmentErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FragmentErrorKind
impl Debug for FragmentErrorKind
Source§impl Display for FragmentErrorKind
impl Display for FragmentErrorKind
Source§impl From<FragmentErrorKind> for ErrorKind
impl From<FragmentErrorKind> for ErrorKind
Source§fn from(inner: FragmentErrorKind) -> Self
fn from(inner: FragmentErrorKind) -> Self
Converts to this type from the input type.
Source§impl PartialEq for FragmentErrorKind
impl PartialEq for FragmentErrorKind
impl Eq for FragmentErrorKind
impl StructuralPartialEq for FragmentErrorKind
Auto Trait Implementations§
impl Freeze for FragmentErrorKind
impl RefUnwindSafe for FragmentErrorKind
impl Send for FragmentErrorKind
impl Sync for FragmentErrorKind
impl Unpin for FragmentErrorKind
impl UnwindSafe for FragmentErrorKind
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