pub struct InstallGlobalPolicyError(/* private fields */);Expand description
Owns the policy that could not be installed because a global policy was already installed.
Implementations§
Source§impl InstallGlobalPolicyError
impl InstallGlobalPolicyError
Sourcepub fn into_policy(self) -> RedactionPolicy
pub fn into_policy(self) -> RedactionPolicy
Returns the policy that was rejected by the global slot.
Trait Implementations§
Source§impl Clone for InstallGlobalPolicyError
impl Clone for InstallGlobalPolicyError
Source§fn clone(&self) -> InstallGlobalPolicyError
fn clone(&self) -> InstallGlobalPolicyError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InstallGlobalPolicyError
impl Debug for InstallGlobalPolicyError
Source§impl Display for InstallGlobalPolicyError
impl Display for InstallGlobalPolicyError
impl Eq for InstallGlobalPolicyError
Source§impl Error for InstallGlobalPolicyError
impl Error for InstallGlobalPolicyError
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 InstallGlobalPolicyError
impl PartialEq for InstallGlobalPolicyError
impl StructuralPartialEq for InstallGlobalPolicyError
Auto Trait Implementations§
impl Freeze for InstallGlobalPolicyError
impl RefUnwindSafe for InstallGlobalPolicyError
impl Send for InstallGlobalPolicyError
impl Sync for InstallGlobalPolicyError
impl Unpin for InstallGlobalPolicyError
impl UnsafeUnpin for InstallGlobalPolicyError
impl UnwindSafe for InstallGlobalPolicyError
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