Enum wick_config::lockdown::FailureKind
source · pub enum FailureKind {
General(String),
Failed(Box<LockdownError>),
NotExpresslyAllowed(String, ResourceKind),
Volume(String, String),
VolumeInvalid(String, String),
VolumeRestrictionInvalid(String),
Port(String, u16),
Address(String, String),
Url(String, String),
FileUrlInvalid(Url),
FileUrlNotFound(Url),
}Expand description
Errors that occur when a configuration is invalid for a configuration.
Variants§
General(String)
General Error.
Failed(Box<LockdownError>)
A lockdown assertion failed.
NotExpresslyAllowed(String, ResourceKind)
A component was not expressly allowed via this configuration.
Volume(String, String)
A component is not allowed to access given volume.
VolumeInvalid(String, String)
A volume could not be reconciled on the file system.
VolumeRestrictionInvalid(String)
A restriction is not a valid path.
Port(String, u16)
A component is not allowed to access given port.
Address(String, String)
A component is not allowed to access given address.
Url(String, String)
A component is not allowed to access given url.
FileUrlInvalid(Url)
A file:// URL could not be turned into a filepath.
FileUrlNotFound(Url)
A file:// URL does not point to a concrete file.
Trait Implementations§
source§impl Clone for FailureKind
impl Clone for FailureKind
source§fn clone(&self) -> FailureKind
fn clone(&self) -> FailureKind
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 FailureKind
impl Debug for FailureKind
source§impl Display for FailureKind
impl Display for FailureKind
source§impl Hash for FailureKind
impl Hash for FailureKind
source§impl PartialEq<FailureKind> for FailureKind
impl PartialEq<FailureKind> for FailureKind
source§fn eq(&self, other: &FailureKind) -> bool
fn eq(&self, other: &FailureKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for FailureKind
impl StructuralEq for FailureKind
impl StructuralPartialEq for FailureKind
Auto Trait Implementations§
impl RefUnwindSafe for FailureKind
impl Send for FailureKind
impl Sync for FailureKind
impl Unpin for FailureKind
impl UnwindSafe for FailureKind
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.