pub enum AccessPolicyLoadError {
Read(Error),
Toml(Error),
Json(Error),
UnsupportedExtension(String),
}Expand description
Access policy file loading failure.
Variants§
Read(Error)
Filesystem read failure.
Toml(Error)
TOML parse failure.
Json(Error)
JSON parse failure.
UnsupportedExtension(String)
File extension is not supported.
Trait Implementations§
Source§impl Debug for AccessPolicyLoadError
impl Debug for AccessPolicyLoadError
Source§impl Display for AccessPolicyLoadError
impl Display for AccessPolicyLoadError
Source§impl Error for AccessPolicyLoadError
impl Error for AccessPolicyLoadError
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 !RefUnwindSafe for AccessPolicyLoadError
impl !UnwindSafe for AccessPolicyLoadError
impl Freeze for AccessPolicyLoadError
impl Send for AccessPolicyLoadError
impl Sync for AccessPolicyLoadError
impl Unpin for AccessPolicyLoadError
impl UnsafeUnpin for AccessPolicyLoadError
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