pub enum IoUringError {
Show 16 variants
RingCreation(Error),
BufferRegistration(Error),
FdRegistration(Error),
SubmissionQueueFull,
BufferPoolExhausted,
InvalidBufferIndex(u16),
OperationFailed {
message: String,
errno: i32,
},
SubmissionFailed(Error),
WaitFailed(Error),
InvalidConfig(String),
FeatureNotSupported {
feature: String,
required_version: String,
},
NotAvailable,
FdNotRegistered(i32),
RingClosed,
PendingNotFound(u64),
BufferTooSmall {
needed: usize,
capacity: usize,
},
}Expand description
Errors that can occur during io_uring operations.
Variants§
RingCreation(Error)
Failed to create the io_uring ring.
BufferRegistration(Error)
Failed to register buffers with the kernel.
FdRegistration(Error)
Failed to register file descriptors.
SubmissionQueueFull
Submission queue is full.
BufferPoolExhausted
No buffers available in the pool.
InvalidBufferIndex(u16)
Invalid buffer index.
OperationFailed
Operation failed with error code.
SubmissionFailed(Error)
Submission failed.
WaitFailed(Error)
Wait for completions failed.
InvalidConfig(String)
Invalid configuration.
FeatureNotSupported
Feature not supported on this kernel.
Fields
NotAvailable
io_uring not available on this platform.
FdNotRegistered(i32)
File descriptor not registered.
RingClosed
Ring already closed.
PendingNotFound(u64)
Pending operation not found.
BufferTooSmall
Data exceeds buffer capacity.
Implementations§
Source§impl IoUringError
impl IoUringError
Sourcepub fn from_errno(message: impl Into<String>, errno: i32) -> Self
pub fn from_errno(message: impl Into<String>, errno: i32) -> Self
Create an operation failed error from an error code.
Sourcepub const fn is_fatal(&self) -> bool
pub const fn is_fatal(&self) -> bool
Check if this error indicates the ring should be recreated.
Sourcepub const fn is_transient(&self) -> bool
pub const fn is_transient(&self) -> bool
Check if this error indicates a transient condition.
Trait Implementations§
Source§impl Debug for IoUringError
impl Debug for IoUringError
Source§impl Display for IoUringError
impl Display for IoUringError
Source§impl Error for IoUringError
impl Error for IoUringError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl From<IoUringError> for Error
impl From<IoUringError> for Error
Source§fn from(source: IoUringError) -> Self
fn from(source: IoUringError) -> Self
Auto Trait Implementations§
impl Freeze for IoUringError
impl !RefUnwindSafe for IoUringError
impl Send for IoUringError
impl Sync for IoUringError
impl Unpin for IoUringError
impl UnsafeUnpin for IoUringError
impl !UnwindSafe for IoUringError
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2where
T: SharedNiching<N1, N2>,
N1: Niching<T>,
N2: Niching<T>,
§impl<T> Pointee for T
impl<T> Pointee for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> Scope for T
impl<T> Scope for T
§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.