pub enum CrossioError {
InvalidConfig(&'static str),
BackendUnavailable(&'static str),
ResourceLimit,
Io(Error),
}Expand description
Unified error returned by core APIs regardless of backend.
Variants§
InvalidConfig(&'static str)
Configuration supplied to the backend was invalid.
The backend failed to initialize because the platform feature is unavailable.
ResourceLimit
The backend could not register more sources because it reached a limit.
Io(Error)
Wrapper around std::io::Error so syscall failures can bubble up directly.
Trait Implementations§
Source§impl Debug for CrossioError
impl Debug for CrossioError
Source§impl Display for CrossioError
impl Display for CrossioError
Source§impl Error for CrossioError
impl Error for CrossioError
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 CrossioError
impl !RefUnwindSafe for CrossioError
impl Send for CrossioError
impl Sync for CrossioError
impl Unpin for CrossioError
impl !UnwindSafe for CrossioError
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