pub enum ResponseDecodeError {
Incomplete,
LiteralFound {
length: u32,
},
Failed,
}
Expand description
Error during response decoding.
Variants§
Incomplete
More data is needed.
LiteralFound
The decoder stopped at the beginning of literal data.
The client MUST accept the literal and has no option to reject it. However, when the client ultimately does not want to handle the literal, it can do something similar to https://datatracker.ietf.org/doc/html/rfc7888#section-4.
It can implement a discarding mechanism, basically, consuming the whole literal but not saving the bytes in memory. Or, it can close the connection.
Failed
Decoding failed.
Trait Implementations§
Source§impl Clone for ResponseDecodeError
impl Clone for ResponseDecodeError
Source§fn clone(&self) -> ResponseDecodeError
fn clone(&self) -> ResponseDecodeError
Returns a copy 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 ResponseDecodeError
impl Debug for ResponseDecodeError
Source§impl IntoBoundedStatic for ResponseDecodeError
impl IntoBoundedStatic for ResponseDecodeError
Source§type Static = ResponseDecodeError
type Static = ResponseDecodeError
The target type is bounded by the
'static
lifetime.Source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.Source§impl PartialEq for ResponseDecodeError
impl PartialEq for ResponseDecodeError
impl Eq for ResponseDecodeError
impl StructuralPartialEq for ResponseDecodeError
Auto Trait Implementations§
impl Freeze for ResponseDecodeError
impl RefUnwindSafe for ResponseDecodeError
impl Send for ResponseDecodeError
impl Sync for ResponseDecodeError
impl Unpin for ResponseDecodeError
impl UnwindSafe for ResponseDecodeError
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