pub enum StreamEncodingError {
Malformed(String),
Local(String),
}Variants§
Malformed(String)
Malformed encoded peer input, including a declared window above the
token’s maximum or a back-reference beyond retained history: the
window plus, for zlib, output already written by the same decode
call. Maps to PeerProtocol.
Local(String)
Local encoder or decoder failure: Integration.
Trait Implementations§
Source§impl Clone for StreamEncodingError
impl Clone for StreamEncodingError
Source§fn clone(&self) -> StreamEncodingError
fn clone(&self) -> StreamEncodingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 StreamEncodingError
impl Debug for StreamEncodingError
Source§impl Display for StreamEncodingError
impl Display for StreamEncodingError
impl Eq for StreamEncodingError
Source§impl Error for StreamEncodingError
impl Error for StreamEncodingError
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<StreamEncodingError> for IltpError
impl From<StreamEncodingError> for IltpError
Source§fn from(value: StreamEncodingError) -> Self
fn from(value: StreamEncodingError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StreamEncodingError
impl PartialEq for StreamEncodingError
Source§fn eq(&self, other: &StreamEncodingError) -> bool
fn eq(&self, other: &StreamEncodingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StreamEncodingError
Auto Trait Implementations§
impl Freeze for StreamEncodingError
impl RefUnwindSafe for StreamEncodingError
impl Send for StreamEncodingError
impl Sync for StreamEncodingError
impl Unpin for StreamEncodingError
impl UnsafeUnpin for StreamEncodingError
impl UnwindSafe for StreamEncodingError
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