pub enum AyaTestError {
Io {
op: &'static str,
path: PathBuf,
source: Error,
},
MissingMountEntryField {
field: &'static str,
mount_entry: String,
},
Cgroup2NotFound,
Syscall {
syscall: &'static str,
path: Option<PathBuf>,
source: Errno,
},
Multi(Vec<Self>),
Netlink(NetlinkError),
}Available on crate feature
test-helpers only.Expand description
An error type for test helpers.
This enum covers all failures that can occur during cgroup setup, network namespace creation, and link manipulation in integration tests.
Variants§
Io
A filesystem operation failed (open, create, write, remove, etc.).
Fields
MissingMountEntryField
A mount entry is missing a required field (e.g. device, mountpoint, or fstype).
Fields
Cgroup2NotFound
No cgroup2 mount entry was found.
Syscall
A syscall failed.
Fields
Multi(Vec<Self>)
Multiple errors.
Netlink(NetlinkError)
An error occurred during a netlink operation.
Trait Implementations§
Source§impl Debug for AyaTestError
impl Debug for AyaTestError
Source§impl Display for AyaTestError
impl Display for AyaTestError
Source§impl Error for AyaTestError
impl Error for AyaTestError
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<NetlinkError> for AyaTestError
impl From<NetlinkError> for AyaTestError
Source§fn from(source: NetlinkError) -> Self
fn from(source: NetlinkError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for AyaTestError
impl !UnwindSafe for AyaTestError
impl Freeze for AyaTestError
impl Send for AyaTestError
impl Sync for AyaTestError
impl Unpin for AyaTestError
impl UnsafeUnpin for AyaTestError
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