pub enum IbvError {
InvalidInput(String),
Resource(String),
Permission(String),
NotFound(String),
Driver(Error),
}Expand description
Represents errors that can occur when interacting with the RDMA subsystem.
This enum maps low-level OS/Driver error codes (errno) into high-level semantic categories
to help applications decide how to recover (e.g., retrying on resource exhaustion vs. panicking on invalid input).
Variants§
InvalidInput(String)
Maps to EINVAL.
Resource(String)
Maps to ENOMEM, EMFILE, EAGAIN.
Permission(String)
Maps to EPERM, EACCES.
NotFound(String)
Maps to ENOENT.
Driver(Error)
Catch-all for underlying OS or Driver failures that don’t fit other categories.
This wraps the standard std::io::Error.
Trait Implementations§
Source§impl Error for IbvError
impl Error for IbvError
1.30.0 · 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 IbvError
impl !RefUnwindSafe for IbvError
impl Send for IbvError
impl Sync for IbvError
impl Unpin for IbvError
impl UnsafeUnpin for IbvError
impl !UnwindSafe for IbvError
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