pub enum PolicyCheckError {
Unreadable(String),
Refused(PolicyRefusal),
}Expand description
Why a policy check could not conclude “this is safe to serve”.
Variants§
Unreadable(String)
The manifest is present and we could not read it. Not a pass.
Refused(PolicyRefusal)
The manifest is fine and declares policy this tier will not honour.
Trait Implementations§
Source§impl Clone for PolicyCheckError
impl Clone for PolicyCheckError
Source§impl Debug for PolicyCheckError
impl Debug for PolicyCheckError
Source§impl Display for PolicyCheckError
impl Display for PolicyCheckError
impl Eq for PolicyCheckError
Source§impl Error for PolicyCheckError
impl Error for PolicyCheckError
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 PolicyCheckError
impl PartialEq for PolicyCheckError
impl StructuralPartialEq for PolicyCheckError
Auto Trait Implementations§
impl Freeze for PolicyCheckError
impl RefUnwindSafe for PolicyCheckError
impl Send for PolicyCheckError
impl Sync for PolicyCheckError
impl Unpin for PolicyCheckError
impl UnsafeUnpin for PolicyCheckError
impl UnwindSafe for PolicyCheckError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.