Struct wick_config::lockdown::LockdownError
source · pub struct LockdownError { /* private fields */ }Expand description
Error returned when asserting a lockdown configuration fails.
Implementations§
source§impl LockdownError
impl LockdownError
sourcepub fn new(failures: Vec<FailureKind>) -> Self
pub fn new(failures: Vec<FailureKind>) -> Self
Instantiate a new lockdown error.
sourcepub fn failures(&self) -> &[FailureKind]
pub fn failures(&self) -> &[FailureKind]
Get the failures that occurred.
Trait Implementations§
source§impl Clone for LockdownError
impl Clone for LockdownError
source§fn clone(&self) -> LockdownError
fn clone(&self) -> LockdownError
Returns a copy of the value. Read more
1.0.0 · 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 LockdownError
impl Debug for LockdownError
source§impl Display for LockdownError
impl Display for LockdownError
source§impl Error for LockdownError
impl Error for LockdownError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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 Hash for LockdownError
impl Hash for LockdownError
source§impl PartialEq<LockdownError> for LockdownError
impl PartialEq<LockdownError> for LockdownError
source§fn eq(&self, other: &LockdownError) -> bool
fn eq(&self, other: &LockdownError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for LockdownError
impl StructuralEq for LockdownError
impl StructuralPartialEq for LockdownError
Auto Trait Implementations§
impl RefUnwindSafe for LockdownError
impl Send for LockdownError
impl Sync for LockdownError
impl Unpin for LockdownError
impl UnwindSafe for LockdownError
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.