pub enum Error {
Show 16 variants
BuildVar(&'static str),
LinksMissing,
LinksName,
ReadFile(Error, PathBuf),
WriteFile(Error, PathBuf),
CreateFile(Error, PathBuf),
CreateDir(Error, PathBuf),
Glob(PatternError),
Toml(Error),
Json(Error),
UnknownPermissionFormat(String),
UnknownCapabilityFormat(String),
SetPermissionNotFound {
permission: String,
set: String,
},
UnknownManifest {
key: String,
available: String,
},
UnknownPermission {
key: String,
permission: String,
},
CapabilityAlreadyExists {
identifier: String,
},
}
Expand description
Possible errors while processing ACL files.
Variants§
BuildVar(&'static str)
Could not find an environmental variable that is set inside of build scripts.
Whatever generated this should be called inside of a build script.
LinksMissing
The links field in the manifest MUST be set and match the name of the crate.
LinksName
The links field in the manifest MUST match the name of the crate.
ReadFile(Error, PathBuf)
IO error while reading a file
WriteFile(Error, PathBuf)
IO error while writing a file
CreateFile(Error, PathBuf)
IO error while creating a file
CreateDir(Error, PathBuf)
IO error while creating a dir
Glob(PatternError)
Invalid glob
Toml(Error)
Invalid TOML encountered
Json(Error)
Invalid JSON encountered
UnknownPermissionFormat(String)
Invalid permissions file format
UnknownCapabilityFormat(String)
Invalid capabilities file format
SetPermissionNotFound
Permission referenced in set not found.
UnknownManifest
Unknown ACL manifest.
UnknownPermission
Unknown permission.
CapabilityAlreadyExists
Capability with the given identifier already exists.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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<PatternError> for Error
impl From<PatternError> for Error
Source§fn from(source: PatternError) -> Self
fn from(source: PatternError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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