#[repr(u8)]pub enum TrustLevel {
Untrusted = 0,
Community = 1,
Developer = 2,
Core = 3,
}Expand description
Trust level assigned to a signing key.
Levels are ordered: Untrusted < Community < Developer < Core.
The package manager’s SignaturePolicy specifies a minimum trust level
that the signing key must meet for installation to proceed.
Variants§
Untrusted = 0
Key is not trusted (default for unknown keys)
Community = 1
Community-contributed key (third-party packages)
Developer = 2
Verified developer key
Core = 3
Core OS key (kernel, base system)
Trait Implementations§
Source§impl Clone for TrustLevel
impl Clone for TrustLevel
Source§fn clone(&self) -> TrustLevel
fn clone(&self) -> TrustLevel
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrustLevel
impl Debug for TrustLevel
Source§impl Default for TrustLevel
impl Default for TrustLevel
Source§fn default() -> TrustLevel
fn default() -> TrustLevel
Returns the “default value” for a type. Read more
Source§impl Ord for TrustLevel
impl Ord for TrustLevel
Source§impl PartialEq for TrustLevel
impl PartialEq for TrustLevel
Source§impl PartialOrd for TrustLevel
impl PartialOrd for TrustLevel
Source§fn partial_cmp(&self, other: &TrustLevel) -> Option<Ordering>
fn partial_cmp(&self, other: &TrustLevel) -> Option<Ordering>
impl Copy for TrustLevel
impl Eq for TrustLevel
impl StructuralPartialEq for TrustLevel
Auto Trait Implementations§
impl Freeze for TrustLevel
impl RefUnwindSafe for TrustLevel
impl Send for TrustLevel
impl Sync for TrustLevel
impl Unpin for TrustLevel
impl UnwindSafe for TrustLevel
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)