Enum cros_async::sys::linux::uring_executor::Error
source · pub enum Error {
Show 13 variants
CreatingContext(Error),
Discard(Error),
DuplicatingFd(Error),
EnablingContext(Error),
ExecutorGone,
InvalidOffset,
InvalidSource,
Io(Error),
RegisteringURingRestriction(Error),
RemovingWaker(Error),
SubmittingOp(Error),
URingContextError(Error),
URingEnter(Error),
}
Variants§
CreatingContext(Error)
Creating a context to wait on FDs failed.
Discard(Error)
Failed to discard a block
DuplicatingFd(Error)
Failed to copy the FD for the polling context.
EnablingContext(Error)
Enabling a context faild.
ExecutorGone
The Executor is gone.
InvalidOffset
Invalid offset or length given for an iovec in backing memory.
InvalidSource
Invalid FD source specified.
Io(Error)
Error doing the IO.
RegisteringURingRestriction(Error)
Registering operation restrictions to a uring failed.
RemovingWaker(Error)
Failed to remove the waker remove the polling context.
SubmittingOp(Error)
Failed to submit the operation to the polling context.
URingContextError(Error)
URingContext failure.
URingEnter(Error)
Failed to submit or wait for io_uring events.
Trait Implementations§
source§impl Error for Error
impl Error for Error
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<Error> for AsyncError
impl From<Error> for AsyncError
source§fn from(e: Error) -> AsyncError
fn from(e: Error) -> AsyncError
Converts to this type from the input type.
source§impl From<Error> for AsyncErrorSys
impl From<Error> for AsyncErrorSys
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§
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