Enum ConfigFileError
#[non_exhaustive]pub enum ConfigFileError {
NoCallingMod,
NotOwned,
InvalidPath,
TooLarge,
NotFound,
NotAFile,
NotAFolder,
Symlink,
Io(String),
}Expand description
Why a config file call was refused.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoCallingMod
Called outside any mod’s hook or part, so no mod owns the call.
NotOwned
The path is another mod’s, or config/ itself.
InvalidPath
Not a path ConfigPath::new takes.
TooLarge
More than CONFIG_FILE_MAX bytes, or a folder of more than
CONFIG_LIST_MAX entries.
NotFound
Nothing is at that path.
NotAFile
A folder where a file was asked for.
NotAFolder
A file where a folder was asked for.
Symlink
A symbolic link on the path, which could lead outside config/.
Io(String)
Any other failure of the file system, as it describes itself.
Trait Implementations§
§impl Clone for ConfigFileError
impl Clone for ConfigFileError
§fn clone(&self) -> ConfigFileError
fn clone(&self) -> ConfigFileError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ConfigFileError
impl Debug for ConfigFileError
§impl Display for ConfigFileError
impl Display for ConfigFileError
impl Eq for ConfigFileError
§impl Error for ConfigFileError
impl Error for ConfigFileError
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()
§impl PartialEq for ConfigFileError
impl PartialEq for ConfigFileError
impl StructuralPartialEq for ConfigFileError
Auto Trait Implementations§
impl Freeze for ConfigFileError
impl RefUnwindSafe for ConfigFileError
impl Send for ConfigFileError
impl Sync for ConfigFileError
impl Unpin for ConfigFileError
impl UnsafeUnpin for ConfigFileError
impl UnwindSafe for ConfigFileError
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