Struct openssl::pkcs7::Pkcs7Flags
source · [−]pub struct Pkcs7Flags { /* private fields */ }
Implementations
sourceimpl Pkcs7Flags
impl Pkcs7Flags
pub const TEXT: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_TEXT,}
pub const NOCERTS: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_NOCERTS,}
pub const NOSIGS: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_NOSIGS,}
pub const NOCHAIN: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_NOCHAIN,}
pub const NOINTERN: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_NOINTERN,}
pub const NOVERIFY: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_NOVERIFY,}
pub const DETACHED: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_DETACHED,}
pub const BINARY: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_BINARY,}
pub const NOATTR: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_NOATTR,}
pub const NOSMIMECAP: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_NOSMIMECAP,}
pub const NOOLDMIMETYPE: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_NOOLDMIMETYPE,}
pub const CRLFEOL: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_CRLFEOL,}
pub const STREAM: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_STREAM,}
pub const NOCRL: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_NOCRL,}
pub const PARTIAL: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_PARTIAL,}
pub const REUSE_DIGEST: Pkcs7Flags = Pkcs7Flags{bits: ffi::PKCS7_REUSE_DIGEST,}
sourcepub const fn empty() -> Pkcs7Flags
pub const fn empty() -> Pkcs7Flags
Returns an empty set of flags
sourcepub const fn all() -> Pkcs7Flags
pub const fn all() -> Pkcs7Flags
Returns the set containing all flags.
sourcepub fn from_bits(bits: c_int) -> Option<Pkcs7Flags>
pub fn from_bits(bits: c_int) -> Option<Pkcs7Flags>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(bits: c_int) -> Pkcs7Flags
pub const fn from_bits_truncate(bits: c_int) -> Pkcs7Flags
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: c_int) -> Pkcs7Flags
pub const unsafe fn from_bits_unchecked(bits: c_int) -> Pkcs7Flags
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: Pkcs7Flags) -> bool
pub const fn intersects(&self, other: Pkcs7Flags) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: Pkcs7Flags) -> bool
pub const fn contains(&self, other: Pkcs7Flags) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: Pkcs7Flags)
pub fn insert(&mut self, other: Pkcs7Flags)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: Pkcs7Flags)
pub fn remove(&mut self, other: Pkcs7Flags)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: Pkcs7Flags)
pub fn toggle(&mut self, other: Pkcs7Flags)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: Pkcs7Flags, value: bool)
pub fn set(&mut self, other: Pkcs7Flags, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for Pkcs7Flags
impl Binary for Pkcs7Flags
sourceimpl BitAnd<Pkcs7Flags> for Pkcs7Flags
impl BitAnd<Pkcs7Flags> for Pkcs7Flags
sourcefn bitand(self, other: Pkcs7Flags) -> Pkcs7Flags
fn bitand(self, other: Pkcs7Flags) -> Pkcs7Flags
Returns the intersection between the two sets of flags.
type Output = Pkcs7Flags
type Output = Pkcs7Flags
The resulting type after applying the &
operator.
sourceimpl BitAndAssign<Pkcs7Flags> for Pkcs7Flags
impl BitAndAssign<Pkcs7Flags> for Pkcs7Flags
sourcefn bitand_assign(&mut self, other: Pkcs7Flags)
fn bitand_assign(&mut self, other: Pkcs7Flags)
Disables all flags disabled in the set.
sourceimpl BitOr<Pkcs7Flags> for Pkcs7Flags
impl BitOr<Pkcs7Flags> for Pkcs7Flags
sourcefn bitor(self, other: Pkcs7Flags) -> Pkcs7Flags
fn bitor(self, other: Pkcs7Flags) -> Pkcs7Flags
Returns the union of the two sets of flags.
type Output = Pkcs7Flags
type Output = Pkcs7Flags
The resulting type after applying the |
operator.
sourceimpl BitOrAssign<Pkcs7Flags> for Pkcs7Flags
impl BitOrAssign<Pkcs7Flags> for Pkcs7Flags
sourcefn bitor_assign(&mut self, other: Pkcs7Flags)
fn bitor_assign(&mut self, other: Pkcs7Flags)
Adds the set of flags.
sourceimpl BitXor<Pkcs7Flags> for Pkcs7Flags
impl BitXor<Pkcs7Flags> for Pkcs7Flags
sourcefn bitxor(self, other: Pkcs7Flags) -> Pkcs7Flags
fn bitxor(self, other: Pkcs7Flags) -> Pkcs7Flags
Returns the left flags, but with all the right flags toggled.
type Output = Pkcs7Flags
type Output = Pkcs7Flags
The resulting type after applying the ^
operator.
sourceimpl BitXorAssign<Pkcs7Flags> for Pkcs7Flags
impl BitXorAssign<Pkcs7Flags> for Pkcs7Flags
sourcefn bitxor_assign(&mut self, other: Pkcs7Flags)
fn bitxor_assign(&mut self, other: Pkcs7Flags)
Toggles the set of flags.
sourceimpl Clone for Pkcs7Flags
impl Clone for Pkcs7Flags
sourcefn clone(&self) -> Pkcs7Flags
fn clone(&self) -> Pkcs7Flags
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Pkcs7Flags
impl Debug for Pkcs7Flags
sourceimpl Extend<Pkcs7Flags> for Pkcs7Flags
impl Extend<Pkcs7Flags> for Pkcs7Flags
sourcefn extend<T: IntoIterator<Item = Pkcs7Flags>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = Pkcs7Flags>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<Pkcs7Flags> for Pkcs7Flags
impl FromIterator<Pkcs7Flags> for Pkcs7Flags
sourcefn from_iter<T: IntoIterator<Item = Pkcs7Flags>>(iterator: T) -> Pkcs7Flags
fn from_iter<T: IntoIterator<Item = Pkcs7Flags>>(iterator: T) -> Pkcs7Flags
Creates a value from an iterator. Read more
sourceimpl Hash for Pkcs7Flags
impl Hash for Pkcs7Flags
sourceimpl LowerHex for Pkcs7Flags
impl LowerHex for Pkcs7Flags
sourceimpl Not for Pkcs7Flags
impl Not for Pkcs7Flags
sourcefn not(self) -> Pkcs7Flags
fn not(self) -> Pkcs7Flags
Returns the complement of this set of flags.
type Output = Pkcs7Flags
type Output = Pkcs7Flags
The resulting type after applying the !
operator.
sourceimpl Octal for Pkcs7Flags
impl Octal for Pkcs7Flags
sourceimpl Ord for Pkcs7Flags
impl Ord for Pkcs7Flags
sourceimpl PartialEq<Pkcs7Flags> for Pkcs7Flags
impl PartialEq<Pkcs7Flags> for Pkcs7Flags
sourcefn eq(&self, other: &Pkcs7Flags) -> bool
fn eq(&self, other: &Pkcs7Flags) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Pkcs7Flags) -> bool
fn ne(&self, other: &Pkcs7Flags) -> bool
This method tests for !=
.
sourceimpl PartialOrd<Pkcs7Flags> for Pkcs7Flags
impl PartialOrd<Pkcs7Flags> for Pkcs7Flags
sourcefn partial_cmp(&self, other: &Pkcs7Flags) -> Option<Ordering>
fn partial_cmp(&self, other: &Pkcs7Flags) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Sub<Pkcs7Flags> for Pkcs7Flags
impl Sub<Pkcs7Flags> for Pkcs7Flags
sourcefn sub(self, other: Pkcs7Flags) -> Pkcs7Flags
fn sub(self, other: Pkcs7Flags) -> Pkcs7Flags
Returns the set difference of the two sets of flags.
type Output = Pkcs7Flags
type Output = Pkcs7Flags
The resulting type after applying the -
operator.
sourceimpl SubAssign<Pkcs7Flags> for Pkcs7Flags
impl SubAssign<Pkcs7Flags> for Pkcs7Flags
sourcefn sub_assign(&mut self, other: Pkcs7Flags)
fn sub_assign(&mut self, other: Pkcs7Flags)
Disables all flags enabled in the set.
sourceimpl UpperHex for Pkcs7Flags
impl UpperHex for Pkcs7Flags
impl Copy for Pkcs7Flags
impl Eq for Pkcs7Flags
impl StructuralEq for Pkcs7Flags
impl StructuralPartialEq for Pkcs7Flags
Auto Trait Implementations
impl RefUnwindSafe for Pkcs7Flags
impl Send for Pkcs7Flags
impl Sync for Pkcs7Flags
impl Unpin for Pkcs7Flags
impl UnwindSafe for Pkcs7Flags
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more