pub enum GuestFsError {
InvalidPath(String),
NotFound(String),
NotADirectory(String),
IsADirectory(String),
GuestCommand {
status: Option<i32>,
stderr: String,
},
Vm(VmError),
Internal(String),
}Expand description
Errors from GuestFsOps (guest path / remote command).
Variants§
InvalidPath(String)
Path escapes the workspace mount or is not absolute.
NotFound(String)
No such file or directory.
NotADirectory(String)
Expected a directory.
IsADirectory(String)
Expected a regular file.
GuestCommand
Guest command failed (non-zero exit).
Vm(VmError)
VM / limactl (Unix γ) or β IPC failure.
Internal(String)
I/O or UTF-8 issues in the mock implementation.
Trait Implementations§
Source§impl Debug for GuestFsError
impl Debug for GuestFsError
Source§impl Display for GuestFsError
impl Display for GuestFsError
Source§impl Error for GuestFsError
impl Error for GuestFsError
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<GuestFsError> for WorkspaceBackendError
impl From<GuestFsError> for WorkspaceBackendError
Source§fn from(e: GuestFsError) -> Self
fn from(e: GuestFsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GuestFsError
impl !RefUnwindSafe for GuestFsError
impl Send for GuestFsError
impl Sync for GuestFsError
impl Unpin for GuestFsError
impl UnsafeUnpin for GuestFsError
impl !UnwindSafe for GuestFsError
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