pub enum IoUringError {
Show 15 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),
}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.
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)>
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()
Source§impl From<IoUringError> for Error
impl From<IoUringError> for Error
Source§fn from(source: IoUringError) -> Self
fn from(source: IoUringError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for IoUringError
impl !RefUnwindSafe for IoUringError
impl Send for IoUringError
impl Sync for IoUringError
impl Unpin for IoUringError
impl !UnwindSafe for IoUringError
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
Source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.
Source§impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
impl<T, N1, N2> Niching<NichedOption<T, N1>> for N2
Source§unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
unsafe fn is_niched(niched: *const NichedOption<T, N1>) -> bool
Returns whether the given value has been niched. Read more
Source§fn resolve_niched(out: Place<NichedOption<T, N1>>)
fn resolve_niched(out: Place<NichedOption<T, N1>>)
Writes data to
out indicating that a T is niched.