pub enum ModificationSafety {
Safe,
Unsafe(UnsafeModificationReason),
}Expand description
Whether modification of the queried target is considered safe under the
current --allow-* policy.
This type describes the safety of modifying the queried target after applying the configured policy.
Variants§
Safe
Modification of the queried target is considered safe.
Unsafe(UnsafeModificationReason)
Modification of the queried target is considered unsafe.
Contains the reason the modification is considered unsafe.
Trait Implementations§
Source§impl Debug for ModificationSafety
impl Debug for ModificationSafety
Source§impl From<UnsafeModificationReason> for ModificationSafety
impl From<UnsafeModificationReason> for ModificationSafety
Source§fn from(reason: UnsafeModificationReason) -> Self
fn from(reason: UnsafeModificationReason) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModificationSafety
impl RefUnwindSafe for ModificationSafety
impl Send for ModificationSafety
impl Sync for ModificationSafety
impl Unpin for ModificationSafety
impl UnsafeUnpin for ModificationSafety
impl UnwindSafe for ModificationSafety
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