Expand description
The primary error type used by Calloop covering internal errors and I/O errors that arise during loop operations such as source registration or event dispatching.
Variants
InvalidToken
When an event source is registered (or re- or un-registered) with the event loop, this error variant will occur if the token Calloop uses to keep track of the event source is not valid.
IoError(Error)
This variant wraps a std::io::Error, which might arise from
Calloop’s internal operations.
OtherError(Box<dyn Error + Sync + Send>)
Any other unexpected error kind (most likely from a user implementation of
EventSource::process_events()) will be wrapped in this.
Trait Implementations
sourceimpl Error for Error
impl Error for Error
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
backtrace)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<Errno> for Error
impl From<Errno> for Error
sourcefn from(err: Errno) -> Self
fn from(err: Errno) -> Self
Converts a nix::Error into a wrapped version of the equivalent
std::io::Error.
sourceimpl From<Error> for Error
impl From<Error> for Error
sourcefn from(err: Error) -> Self
fn from(err: Error) -> Self
Converts Calloop’s error type into a std::io::Error.
sourceimpl<T> From<InsertError<T>> for Error
impl<T> From<InsertError<T>> for Error
sourcefn from(e: InsertError<T>) -> Error
fn from(e: InsertError<T>) -> Error
Converts the InsertError into Calloop’s error type, throwing away
the contained source.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more