pub struct TrustOptions(/* private fields */);Available on macOS and crate feature
full only.Expand description
Mirrors SecTrustOptionFlags.
Implementations§
Source§impl TrustOptions
impl TrustOptions
Sourcepub const ALLOW_EXPIRED: Self
pub const ALLOW_EXPIRED: Self
Mirrors a SecTrustOptionFlags bit.
Sourcepub const LEAF_IS_CA: Self
pub const LEAF_IS_CA: Self
Mirrors a SecTrustOptionFlags bit.
Sourcepub const FETCH_ISSUER_FROM_NET: Self
pub const FETCH_ISSUER_FROM_NET: Self
Mirrors a SecTrustOptionFlags bit.
Sourcepub const ALLOW_EXPIRED_ROOT: Self
pub const ALLOW_EXPIRED_ROOT: Self
Mirrors a SecTrustOptionFlags bit.
Sourcepub const REQUIRE_REVOCATION_PER_CERT: Self
pub const REQUIRE_REVOCATION_PER_CERT: Self
Mirrors a SecTrustOptionFlags bit.
Sourcepub const USE_TRUST_SETTINGS: Self
pub const USE_TRUST_SETTINGS: Self
Mirrors a SecTrustOptionFlags bit.
Sourcepub const IMPLICIT_ANCHORS: Self
pub const IMPLICIT_ANCHORS: Self
Mirrors a SecTrustOptionFlags bit.
pub const fn empty() -> Self
pub const fn all() -> Self
pub const fn bits(self) -> u32
pub const fn from_bits(bits: u32) -> Option<Self>
pub const fn from_bits_retain(bits: u32) -> Self
pub const fn from_bits_truncate(bits: u32) -> Self
pub const fn is_empty(self) -> bool
pub const fn is_all(self) -> bool
pub const fn contains(self, other: Self) -> bool
pub const fn intersects(self, other: Self) -> bool
pub const fn union(self, other: Self) -> Self
pub const fn intersection(self, other: Self) -> Self
pub const fn difference(self, other: Self) -> Self
pub const fn symmetric_difference(self, other: Self) -> Self
pub const fn complement(self) -> Self
pub fn insert(&mut self, other: Self)
pub fn remove(&mut self, other: Self)
pub fn toggle(&mut self, other: Self)
pub fn set(&mut self, other: Self, value: bool)
Trait Implementations§
Source§impl BitAnd for TrustOptions
impl BitAnd for TrustOptions
Source§impl BitAndAssign for TrustOptions
impl BitAndAssign for TrustOptions
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOr for TrustOptions
impl BitOr for TrustOptions
Source§impl BitOrAssign for TrustOptions
impl BitOrAssign for TrustOptions
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXor for TrustOptions
impl BitXor for TrustOptions
Source§impl BitXorAssign for TrustOptions
impl BitXorAssign for TrustOptions
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreSource§impl Clone for TrustOptions
impl Clone for TrustOptions
impl Copy for TrustOptions
Source§impl Debug for TrustOptions
impl Debug for TrustOptions
impl Eq for TrustOptions
Source§impl Hash for TrustOptions
impl Hash for TrustOptions
Source§impl Not for TrustOptions
impl Not for TrustOptions
Source§impl PartialEq for TrustOptions
impl PartialEq for TrustOptions
impl StructuralPartialEq for TrustOptions
Source§impl Sub for TrustOptions
impl Sub for TrustOptions
Source§impl SubAssign for TrustOptions
impl SubAssign for TrustOptions
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-= operation. Read moreAuto Trait Implementations§
impl Freeze for TrustOptions
impl RefUnwindSafe for TrustOptions
impl Send for TrustOptions
impl Sync for TrustOptions
impl Unpin for TrustOptions
impl UnsafeUnpin for TrustOptions
impl UnwindSafe for TrustOptions
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