pub enum StreamingError {
InvalidFrameType {
found: u8,
},
ChecksumMismatch {
expected: u32,
found: u32,
},
UnexpectedFrame {
expected: FrameType,
found: FrameType,
},
StreamNotStarted,
StreamAlreadyComplete,
ChunkSizeExceeded {
size: usize,
max: usize,
},
BinaryError(BinaryError),
}Expand description
Error types for streaming operations
Variants§
InvalidFrameType
Invalid frame type byte
ChecksumMismatch
Checksum mismatch in chunk frame
UnexpectedFrame
Unexpected frame type in sequence
StreamNotStarted
Stream not started (no BEGIN frame received)
StreamAlreadyComplete
Stream already complete (END frame already received)
ChunkSizeExceeded
Chunk size exceeds maximum allowed
BinaryError(BinaryError)
Binary encoding/decoding error
Trait Implementations§
Source§impl Clone for StreamingError
impl Clone for StreamingError
Source§fn clone(&self) -> StreamingError
fn clone(&self) -> StreamingError
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 StreamingError
impl Debug for StreamingError
Source§impl Display for StreamingError
impl Display for StreamingError
Source§impl Error for StreamingError
impl Error for StreamingError
1.30.0 · 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 From<BinaryError> for StreamingError
impl From<BinaryError> for StreamingError
Source§fn from(err: BinaryError) -> Self
fn from(err: BinaryError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StreamingError
impl PartialEq for StreamingError
impl StructuralPartialEq for StreamingError
Auto Trait Implementations§
impl Freeze for StreamingError
impl RefUnwindSafe for StreamingError
impl Send for StreamingError
impl Sync for StreamingError
impl Unpin for StreamingError
impl UnwindSafe for StreamingError
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