[−]Struct openssl::pkcs7::Pkcs7Flags
Methods
impl Pkcs7Flags
impl Pkcs7Flagspub const TEXT: Pkcs7Flags
pub const NOCERTS: Pkcs7Flags
pub const NOSIGS: Pkcs7Flags
pub const NOCHAIN: Pkcs7Flags
pub const NOINTERN: Pkcs7Flags
pub const NOVERIFY: Pkcs7Flags
pub const DETACHED: Pkcs7Flags
pub const BINARY: Pkcs7Flags
pub const NOATTR: Pkcs7Flags
pub const NOSMIMECAP: Pkcs7Flags
pub const NOOLDMIMETYPE: Pkcs7Flags
pub const CRLFEOL: Pkcs7Flags
pub const STREAM: Pkcs7Flags
pub const NOCRL: Pkcs7Flags
pub const PARTIAL: Pkcs7Flags
pub const REUSE_DIGEST: Pkcs7Flags
pub fn empty() -> Pkcs7Flags
pub fn empty() -> Pkcs7FlagsReturns an empty set of flags.
pub fn all() -> Pkcs7Flags
pub fn all() -> Pkcs7FlagsReturns the set containing all flags.
pub fn bits(&self) -> c_int
pub fn bits(&self) -> c_intReturns the raw value of the flags currently stored.
pub 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.
pub fn from_bits_truncate(bits: c_int) -> Pkcs7Flags
pub fn from_bits_truncate(bits: c_int) -> Pkcs7FlagsConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: Pkcs7Flags) -> bool
pub fn intersects(&self, other: Pkcs7Flags) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: Pkcs7Flags) -> bool
pub fn contains(&self, other: Pkcs7Flags) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: Pkcs7Flags)
pub fn insert(&mut self, other: Pkcs7Flags)Inserts the specified flags in-place.
pub fn remove(&mut self, other: Pkcs7Flags)
pub fn remove(&mut self, other: Pkcs7Flags)Removes the specified flags in-place.
pub fn toggle(&mut self, other: Pkcs7Flags)
pub fn toggle(&mut self, other: Pkcs7Flags)Toggles the specified flags in-place.
pub 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
impl Clone for Pkcs7Flags
impl Clone for Pkcs7Flagsfn clone(&self) -> Pkcs7Flags
fn clone(&self) -> Pkcs7FlagsReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl Extend<Pkcs7Flags> for Pkcs7Flags
impl Extend<Pkcs7Flags> for Pkcs7Flagsfn 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
impl Copy for Pkcs7Flags
impl Copy for Pkcs7Flagsimpl Eq for Pkcs7Flags
impl Eq for Pkcs7Flagsimpl PartialOrd<Pkcs7Flags> for Pkcs7Flags
impl PartialOrd<Pkcs7Flags> for Pkcs7Flagsfn 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
fn lt(&self, other: &Pkcs7Flags) -> bool
fn lt(&self, other: &Pkcs7Flags) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Pkcs7Flags) -> bool
fn le(&self, other: &Pkcs7Flags) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Pkcs7Flags) -> bool
fn gt(&self, other: &Pkcs7Flags) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Pkcs7Flags) -> bool
fn ge(&self, other: &Pkcs7Flags) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq<Pkcs7Flags> for Pkcs7Flags
impl PartialEq<Pkcs7Flags> for Pkcs7Flagsfn eq(&self, other: &Pkcs7Flags) -> bool
fn eq(&self, other: &Pkcs7Flags) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Pkcs7Flags) -> bool
fn ne(&self, other: &Pkcs7Flags) -> boolThis method tests for !=.
impl Ord for Pkcs7Flags
impl Ord for Pkcs7Flagsfn cmp(&self, other: &Pkcs7Flags) -> Ordering
fn cmp(&self, other: &Pkcs7Flags) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for Pkcs7Flags
impl Hash for Pkcs7Flagsfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for Pkcs7Flags
impl Debug for Pkcs7Flagsimpl Sub<Pkcs7Flags> for Pkcs7Flags
impl Sub<Pkcs7Flags> for Pkcs7Flagstype Output = Pkcs7Flags
The resulting type after applying the - operator.
fn sub(self, other: Pkcs7Flags) -> Pkcs7Flags
fn sub(self, other: Pkcs7Flags) -> Pkcs7FlagsReturns the set difference of the two sets of flags.
impl SubAssign<Pkcs7Flags> for Pkcs7Flags
impl SubAssign<Pkcs7Flags> for Pkcs7Flagsfn sub_assign(&mut self, other: Pkcs7Flags)
fn sub_assign(&mut self, other: Pkcs7Flags)Disables all flags enabled in the set.
impl Not for Pkcs7Flags
impl Not for Pkcs7Flagstype Output = Pkcs7Flags
The resulting type after applying the ! operator.
fn not(self) -> Pkcs7Flags
fn not(self) -> Pkcs7FlagsReturns the complement of this set of flags.
impl BitAnd<Pkcs7Flags> for Pkcs7Flags
impl BitAnd<Pkcs7Flags> for Pkcs7Flagstype Output = Pkcs7Flags
The resulting type after applying the & operator.
fn bitand(self, other: Pkcs7Flags) -> Pkcs7Flags
fn bitand(self, other: Pkcs7Flags) -> Pkcs7FlagsReturns the intersection between the two sets of flags.
impl BitOr<Pkcs7Flags> for Pkcs7Flags
impl BitOr<Pkcs7Flags> for Pkcs7Flagstype Output = Pkcs7Flags
The resulting type after applying the | operator.
fn bitor(self, other: Pkcs7Flags) -> Pkcs7Flags
fn bitor(self, other: Pkcs7Flags) -> Pkcs7FlagsReturns the union of the two sets of flags.
impl BitXor<Pkcs7Flags> for Pkcs7Flags
impl BitXor<Pkcs7Flags> for Pkcs7Flagstype Output = Pkcs7Flags
The resulting type after applying the ^ operator.
fn bitxor(self, other: Pkcs7Flags) -> Pkcs7Flags
fn bitxor(self, other: Pkcs7Flags) -> Pkcs7FlagsReturns the left flags, but with all the right flags toggled.
impl BitAndAssign<Pkcs7Flags> for Pkcs7Flags
impl BitAndAssign<Pkcs7Flags> for Pkcs7Flagsfn bitand_assign(&mut self, other: Pkcs7Flags)
fn bitand_assign(&mut self, other: Pkcs7Flags)Disables all flags disabled in the set.
impl BitOrAssign<Pkcs7Flags> for Pkcs7Flags
impl BitOrAssign<Pkcs7Flags> for Pkcs7Flagsfn bitor_assign(&mut self, other: Pkcs7Flags)
fn bitor_assign(&mut self, other: Pkcs7Flags)Adds the set of flags.
impl BitXorAssign<Pkcs7Flags> for Pkcs7Flags
impl BitXorAssign<Pkcs7Flags> for Pkcs7Flagsfn bitxor_assign(&mut self, other: Pkcs7Flags)
fn bitxor_assign(&mut self, other: Pkcs7Flags)Toggles the set of flags.
impl FromIterator<Pkcs7Flags> for Pkcs7Flags
impl FromIterator<Pkcs7Flags> for Pkcs7Flagsfn from_iter<T: IntoIterator<Item = Pkcs7Flags>>(iterator: T) -> Pkcs7Flags
fn from_iter<T: IntoIterator<Item = Pkcs7Flags>>(iterator: T) -> Pkcs7FlagsCreates a value from an iterator. Read more
impl Octal for Pkcs7Flags
impl Octal for Pkcs7Flagsimpl Binary for Pkcs7Flags
impl Binary for Pkcs7Flagsimpl LowerHex for Pkcs7Flags
impl LowerHex for Pkcs7Flagsimpl UpperHex for Pkcs7Flags
impl UpperHex for Pkcs7FlagsAuto Trait Implementations
impl Send for Pkcs7Flags
impl Send for Pkcs7Flagsimpl Sync for Pkcs7Flags
impl Sync for Pkcs7FlagsBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, type Owned = T
fn to_owned(&self) -> T[src]
fn to_owned(&self) -> TCreates owned data from borrowed data, usually by cloning. Read more
fn clone_into(&self, target: &mut T)[src]
fn clone_into(&self, target: &mut T)🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 This is a nightly-only experimental API. (get_type_id)
this method will likely be replaced by an associated static
Gets the TypeId of self. Read more