pub enum MicrosandboxUtilsError {
PathValidation(String),
FileNotFound(String, String),
IoError(Error),
Runtime(String),
NixError(Error),
Custom(AnyError),
}
Expand description
An error that occurred during a file system operation.
Variants§
PathValidation(String)
An error that occurred when validating paths
FileNotFound(String, String)
An error that occurred when resolving a file
IoError(Error)
An error that occurred when performing an IO operation
Runtime(String)
An error that occurred during a runtime operation
NixError(Error)
An error that occurred during a nix operation
Custom(AnyError)
Custom error.
Implementations§
Source§impl MicrosandboxUtilsError
impl MicrosandboxUtilsError
Sourcepub fn custom(error: impl Into<Error>) -> MicrosandboxUtilsError
pub fn custom(error: impl Into<Error>) -> MicrosandboxUtilsError
Creates a new Err
result.
Trait Implementations§
Source§impl Debug for MicrosandboxUtilsError
impl Debug for MicrosandboxUtilsError
Source§impl Display for MicrosandboxUtilsError
impl Display for MicrosandboxUtilsError
Source§impl Error for MicrosandboxUtilsError
impl Error for MicrosandboxUtilsError
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<AnyError> for MicrosandboxUtilsError
impl From<AnyError> for MicrosandboxUtilsError
Source§impl From<Errno> for MicrosandboxUtilsError
impl From<Errno> for MicrosandboxUtilsError
Auto Trait Implementations§
impl Freeze for MicrosandboxUtilsError
impl !RefUnwindSafe for MicrosandboxUtilsError
impl Send for MicrosandboxUtilsError
impl Sync for MicrosandboxUtilsError
impl Unpin for MicrosandboxUtilsError
impl !UnwindSafe for MicrosandboxUtilsError
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