pub enum PolicyViolation {
FilesystemDenied(String),
DisallowedBinary(String),
BlockedShellPattern(String),
RateLimitExceeded(String, u32),
OutputLimitExceeded(usize),
}Variants§
FilesystemDenied(String)
DisallowedBinary(String)
BlockedShellPattern(String)
RateLimitExceeded(String, u32)
OutputLimitExceeded(usize)
Trait Implementations§
Source§impl Debug for PolicyViolation
impl Debug for PolicyViolation
Source§impl Display for PolicyViolation
impl Display for PolicyViolation
Source§impl Error for PolicyViolation
impl Error for PolicyViolation
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()
Auto Trait Implementations§
impl Freeze for PolicyViolation
impl RefUnwindSafe for PolicyViolation
impl Send for PolicyViolation
impl Sync for PolicyViolation
impl Unpin for PolicyViolation
impl UnsafeUnpin for PolicyViolation
impl UnwindSafe for PolicyViolation
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