Enum tpnote_lib::error::FileError
source · pub enum FileError {
ConfigFileSortTag {
char: char,
chars: String,
extra_separator: String,
},
ConfigFileCopyCounter {
chars: String,
extra_separator: String,
},
PathToConfigFileNotFound,
ConfigFileNotFound,
NoFreeFileName {
directory: PathBuf,
},
Io(Error),
Serialize(Error),
Deserialize(Error),
}Expand description
Error related to the filesystem and to invoking external applications.
Variants§
ConfigFileSortTag
Remedy: restart.
ConfigFileCopyCounter
Remedy: restart.
PathToConfigFileNotFound
Should not happen. Please report this bug.
ConfigFileNotFound
Should not happen. Please report this bug.
NoFreeFileName
Remedy: delete all files in configuration file directory.
Io(Error)
Serialize(Error)
Deserialize(Error)
Trait Implementations§
source§impl Error for FileError
impl Error for FileError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 !RefUnwindSafe for FileError
impl Send for FileError
impl Sync for FileError
impl Unpin for FileError
impl !UnwindSafe for FileError
Blanket Implementations§
§impl<T> AsFail for Twhere
T: Fail,
impl<T> AsFail for Twhere
T: Fail,
§impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
impl<E> Fail for Ewhere
E: 'static + Error + Send + Sync,
§fn cause(&self) -> Option<&(dyn Fail + 'static)>
fn cause(&self) -> Option<&(dyn Fail + 'static)>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace carried by this failure, if it
carries one. Read more