pub enum ErrorKind {
Show 15 variants
CommandNotFound {
path: String,
io_error: Error,
},
NonsenseCommandOutput,
MissingEnvironmentVariable {
variable: String,
var_error: VarError,
},
CouldNotStartSftpSession {
error: Error,
},
CouldNotOpenFile {
filepath: PathBuf,
error: Error,
},
CouldNotOpenRemoteFile {
filepath: PathBuf,
error: Error,
},
CouldNotParseFile {
filepath: PathBuf,
},
IllFormedConfiguration {
value: ConfigurationValue,
},
AuthenticationFailed {
error: Error,
},
CouldNotGenerateFile {
filepath: PathBuf,
error: Error,
},
FileSystemError {
error: Error,
},
RemoteFileSystemError {
error: Error,
},
IncompatibleConfigurations,
BadArgument,
Undetermined,
}
Variants§
CommandNotFound
Some command failed because its binary was not found. Keep the path and original error.
NonsenseCommandOutput
We could not make sense of the output of some command
MissingEnvironmentVariable
We looked for some environment variable, but did not find it. keep the variable name and original error
CouldNotStartSftpSession
CouldNotOpenFile
CouldNotOpenRemoteFile
CouldNotParseFile
IllFormedConfiguration
Fields
§
value: ConfigurationValue
AuthenticationFailed
CouldNotGenerateFile
FileSystemError
Some general error in the local filesystem.
RemoteFileSystemError
Some general error in a remote filesystem.
IncompatibleConfigurations
The local configuration does not match the remote one.
BadArgument
Some method received a bad argument. There should be an attached message with further explanation.
Undetermined
Any other error. Better to add new types than to use this thing.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ErrorKind
impl !RefUnwindSafe for ErrorKind
impl !Send for ErrorKind
impl !Sync for ErrorKind
impl Unpin for ErrorKind
impl !UnwindSafe for ErrorKind
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more