pub enum PolicyError {
JobPolicyDisallowed {
policy: String,
moniker: Moniker,
},
ChildPolicyDisallowed {
policy: String,
moniker: Moniker,
},
InvalidCapabilitySource {
moniker: ExtendedMoniker,
},
CapabilityUseDisallowed {
cap: String,
source_moniker: ExtendedMoniker,
target_moniker: Moniker,
},
DebugCapabilityUseDisallowed {
cap: String,
env_moniker: Moniker,
env_name: String,
},
}
Expand description
Errors returned by the PolicyChecker and the ScopedPolicyChecker.
Variants§
JobPolicyDisallowed
ChildPolicyDisallowed
InvalidCapabilitySource
Fields
§
moniker: ExtendedMoniker
CapabilityUseDisallowed
DebugCapabilityUseDisallowed
Implementations§
Source§impl PolicyError
impl PolicyError
Sourcepub fn as_zx_status(&self) -> Status
pub fn as_zx_status(&self) -> Status
Convert this error into its approximate zx::Status
equivalent.
Trait Implementations§
Source§impl Clone for PolicyError
impl Clone for PolicyError
Source§fn clone(&self) -> PolicyError
fn clone(&self) -> PolicyError
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 PolicyError
impl Debug for PolicyError
Source§impl Display for PolicyError
impl Display for PolicyError
Source§impl Error for PolicyError
impl Error for PolicyError
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<PolicyError> for ExtendedMoniker
impl From<PolicyError> for ExtendedMoniker
Source§fn from(err: PolicyError) -> ExtendedMoniker
fn from(err: PolicyError) -> ExtendedMoniker
Converts to this type from the input type.
Source§impl From<PolicyError> for RoutingError
impl From<PolicyError> for RoutingError
Source§fn from(source: PolicyError) -> Self
fn from(source: PolicyError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PolicyError
impl PartialEq for PolicyError
impl StructuralPartialEq for PolicyError
Auto Trait Implementations§
impl Freeze for PolicyError
impl RefUnwindSafe for PolicyError
impl Send for PolicyError
impl Sync for PolicyError
impl Unpin for PolicyError
impl UnwindSafe for PolicyError
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)