pub enum PreflightCheckError {
CommandExecution(Command, Error),
CommandUnsuccessful(Command, Output),
DefaultBasePathIO(PathBuf, Error),
TestUnderBasePathIO(PathBuf, Error),
}Variants§
CommandExecution(Command, Error)
Happens when a required command (e.g. sshfs) cannot be executed.
CommandUnsuccessful(Command, Output)
Happens when a required command was executed, but was unsuccessful.
DefaultBasePathIO(PathBuf, Error)
Happens when the default mount path (e.g. /mnt/sshfs) does not exist and cannot be prepared.
TestUnderBasePathIO(PathBuf, Error)
Happens when a test directory (e.g. /mnt/sshfs/_sftpman_test_1234567890) under the default mount path could not be prepared.
Trait Implementations§
Source§impl Debug for PreflightCheckError
impl Debug for PreflightCheckError
Source§impl Display for PreflightCheckError
impl Display for PreflightCheckError
Source§impl Error for PreflightCheckError
impl Error for PreflightCheckError
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 PreflightCheckError
impl !RefUnwindSafe for PreflightCheckError
impl Send for PreflightCheckError
impl Sync for PreflightCheckError
impl Unpin for PreflightCheckError
impl !UnwindSafe for PreflightCheckError
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
Source§impl<T> ValidateIp for Twhere
T: ToString,
impl<T> ValidateIp for Twhere
T: ToString,
Source§fn validate_ipv4(&self) -> bool
fn validate_ipv4(&self) -> bool
Validates whether the given string is an IP V4
Source§fn validate_ipv6(&self) -> bool
fn validate_ipv6(&self) -> bool
Validates whether the given string is an IP V6
Source§fn validate_ip(&self) -> bool
fn validate_ip(&self) -> bool
Validates whether the given string is an IP