pub enum KvlarError {
PolicyParse(String),
UnknownActionType(String),
InvalidCondition(String),
Serialization(Error),
YamlParse(Error),
}Expand description
Errors that can occur during policy evaluation.
Variants§
PolicyParse(String)
A policy file could not be parsed.
UnknownActionType(String)
A policy rule references an unknown action type.
InvalidCondition(String)
A policy condition is malformed.
Serialization(Error)
Serialization/deserialization error.
YamlParse(Error)
YAML parsing error.
Trait Implementations§
Source§impl Debug for KvlarError
impl Debug for KvlarError
Source§impl Display for KvlarError
impl Display for KvlarError
Source§impl Error for KvlarError
impl Error for KvlarError
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<Error> for KvlarError
impl From<Error> for KvlarError
Auto Trait Implementations§
impl Freeze for KvlarError
impl !RefUnwindSafe for KvlarError
impl Send for KvlarError
impl Sync for KvlarError
impl Unpin for KvlarError
impl UnsafeUnpin for KvlarError
impl !UnwindSafe for KvlarError
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