pub enum KoitError {
ToFormat(Box<dyn Error + Send + Sync + 'static>),
FromFormat(Box<dyn Error + Send + Sync + 'static>),
BackendRead(Box<dyn Error + Send + Sync + 'static>),
BackendWrite(Box<dyn Error + Send + Sync + 'static>),
BackendCreation(Box<dyn Error + Send + Sync + 'static>),
}Expand description
The error variants Koit can return.
The concrete source error types are the associated errors types
Format::Error and Backend::Error.
Variants§
ToFormat(Box<dyn Error + Send + Sync + 'static>)
Data failed to be encoded by the formatter.
FromFormat(Box<dyn Error + Send + Sync + 'static>)
Data failed to be decoded by the formatter.
BackendRead(Box<dyn Error + Send + Sync + 'static>)
The backend failed to read bytes.
BackendWrite(Box<dyn Error + Send + Sync + 'static>)
The backend failed to write bytes.
BackendCreation(Box<dyn Error + Send + Sync + 'static>)
The backend failed to be created.
Trait Implementations§
Source§impl Error for KoitError
impl Error for KoitError
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()
Auto Trait Implementations§
impl Freeze for KoitError
impl !RefUnwindSafe for KoitError
impl Send for KoitError
impl Sync for KoitError
impl Unpin for KoitError
impl UnsafeUnpin for KoitError
impl !UnwindSafe for KoitError
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