pub enum CodecLoadError {
UnsupportedProtocol(String),
DisabledEncoding(&'static str),
}Expand description
Errors that can occur while attempting to load a codec.
Variants§
UnsupportedProtocol(String)
Protocol is unsupported.
Normally wil be caused by the client requesting a different version than the server supports.
DisabledEncoding(&'static str)
Requested protocol and encoding is valid, but the encoding method is disabled.
Trait Implementations§
Source§impl Debug for CodecLoadError
impl Debug for CodecLoadError
Source§impl Display for CodecLoadError
impl Display for CodecLoadError
Source§impl Error for CodecLoadError
impl Error for CodecLoadError
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 PartialEq for CodecLoadError
impl PartialEq for CodecLoadError
impl Eq for CodecLoadError
impl StructuralPartialEq for CodecLoadError
Auto Trait Implementations§
impl Freeze for CodecLoadError
impl RefUnwindSafe for CodecLoadError
impl Send for CodecLoadError
impl Sync for CodecLoadError
impl Unpin for CodecLoadError
impl UnsafeUnpin for CodecLoadError
impl UnwindSafe for CodecLoadError
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