pub enum KcpSegmentsParseError {
EmptySequence,
Segment {
offset: usize,
error: KcpSegmentParseError,
},
}Expand description
Failure to validate a complete concatenated KCP segment sequence.
Variants§
EmptySequence
The supplied sequence contains no segments.
Segment
A segment cannot be parsed at the indicated absolute byte offset.
Fields
§
error: KcpSegmentParseErrorExact failure while parsing the segment.
Trait Implementations§
Source§impl Clone for KcpSegmentsParseError
impl Clone for KcpSegmentsParseError
impl Copy for KcpSegmentsParseError
Source§impl Debug for KcpSegmentsParseError
impl Debug for KcpSegmentsParseError
Source§impl Display for KcpSegmentsParseError
impl Display for KcpSegmentsParseError
impl Eq for KcpSegmentsParseError
Source§impl Error for KcpSegmentsParseError
impl Error for KcpSegmentsParseError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for KcpSegmentsParseError
impl PartialEq for KcpSegmentsParseError
impl StructuralPartialEq for KcpSegmentsParseError
Auto Trait Implementations§
impl Freeze for KcpSegmentsParseError
impl RefUnwindSafe for KcpSegmentsParseError
impl Send for KcpSegmentsParseError
impl Sync for KcpSegmentsParseError
impl Unpin for KcpSegmentsParseError
impl UnsafeUnpin for KcpSegmentsParseError
impl UnwindSafe for KcpSegmentsParseError
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