pub enum PolicyBlockError {
PreconditionMismatch {
message: String,
},
SafetyGateDenial {
message: String,
},
PolicyDenial {
message: String,
},
CapsExceeded {
message: String,
},
}Expand description
Policy block errors that should result in exit code 2.
Variants§
PreconditionMismatch
One or more preconditions failed (file changed, missing, sha256 mismatch).
SafetyGateDenial
A fix was denied by the safety gate (guarded/unsafe not allowed).
PolicyDenial
A fix was denied by the allow/deny policy.
CapsExceeded
Caps exceeded (max operations, max files, max diff size).
Trait Implementations§
Source§impl Debug for PolicyBlockError
impl Debug for PolicyBlockError
Source§impl Display for PolicyBlockError
impl Display for PolicyBlockError
Source§impl Error for PolicyBlockError
impl Error for PolicyBlockError
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 From<PolicyBlockError> for EditError
impl From<PolicyBlockError> for EditError
Source§fn from(source: PolicyBlockError) -> Self
fn from(source: PolicyBlockError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PolicyBlockError
impl RefUnwindSafe for PolicyBlockError
impl Send for PolicyBlockError
impl Sync for PolicyBlockError
impl Unpin for PolicyBlockError
impl UnsafeUnpin for PolicyBlockError
impl UnwindSafe for PolicyBlockError
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