pub enum LogdError {
Encode(Error),
Decode(Error),
Frame(FrameError),
Version {
got: u8,
ours: u8,
},
}Expand description
Errors raised encoding or decoding an ingest frame.
Variants§
Trait Implementations§
Source§impl Error for LogdError
impl Error for LogdError
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<FrameError> for LogdError
impl From<FrameError> for LogdError
Source§fn from(source: FrameError) -> Self
fn from(source: FrameError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for LogdError
impl !UnwindSafe for LogdError
impl Freeze for LogdError
impl Send for LogdError
impl Sync for LogdError
impl Unpin for LogdError
impl UnsafeUnpin for LogdError
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