pub enum PolicyParseError {
Yaml(String),
InvalidCapability {
raw: String,
reason: String,
},
InvalidSyscall {
raw: String,
reason: String,
},
}Expand description
Errors that can occur while parsing a PolicyDocument.
Variants§
Yaml(String)
The YAML could not be deserialized.
InvalidCapability
A capability token was not recognised.
InvalidSyscall
A syscall name in the syscalls.allow list was not recognised.
Trait Implementations§
Source§impl Clone for PolicyParseError
impl Clone for PolicyParseError
Source§fn clone(&self) -> PolicyParseError
fn clone(&self) -> PolicyParseError
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 moreSource§impl Debug for PolicyParseError
impl Debug for PolicyParseError
Source§impl Display for PolicyParseError
impl Display for PolicyParseError
impl Eq for PolicyParseError
Source§impl Error for PolicyParseError
impl Error for PolicyParseError
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()
Source§impl PartialEq for PolicyParseError
impl PartialEq for PolicyParseError
Source§fn eq(&self, other: &PolicyParseError) -> bool
fn eq(&self, other: &PolicyParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PolicyParseError
Auto Trait Implementations§
impl Freeze for PolicyParseError
impl RefUnwindSafe for PolicyParseError
impl Send for PolicyParseError
impl Sync for PolicyParseError
impl Unpin for PolicyParseError
impl UnsafeUnpin for PolicyParseError
impl UnwindSafe for PolicyParseError
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