Struct openssl::cms::CMSOptions
source · [−]pub struct CMSOptions { /* private fields */ }
Implementations
sourceimpl CMSOptions
impl CMSOptions
pub const TEXT: CMSOptions = CMSOptions{bits: ffi::CMS_TEXT,}
pub const CMS_NOCERTS: CMSOptions = CMSOptions{bits: ffi::CMS_NOCERTS,}
pub const NO_CONTENT_VERIFY: CMSOptions = CMSOptions{bits: ffi::CMS_NO_CONTENT_VERIFY,}
pub const NO_ATTR_VERIFY: CMSOptions = CMSOptions{bits: ffi::CMS_NO_ATTR_VERIFY,}
pub const NOSIGS: CMSOptions = CMSOptions{bits: ffi::CMS_NOSIGS,}
pub const NOINTERN: CMSOptions = CMSOptions{bits: ffi::CMS_NOINTERN,}
pub const NO_SIGNER_CERT_VERIFY: CMSOptions = CMSOptions{bits: ffi::CMS_NO_SIGNER_CERT_VERIFY,}
pub const NOVERIFY: CMSOptions = CMSOptions{bits: ffi::CMS_NOVERIFY,}
pub const DETACHED: CMSOptions = CMSOptions{bits: ffi::CMS_DETACHED,}
pub const BINARY: CMSOptions = CMSOptions{bits: ffi::CMS_BINARY,}
pub const NOATTR: CMSOptions = CMSOptions{bits: ffi::CMS_NOATTR,}
pub const NOSMIMECAP: CMSOptions = CMSOptions{bits: ffi::CMS_NOSMIMECAP,}
pub const NOOLDMIMETYPE: CMSOptions = CMSOptions{bits: ffi::CMS_NOOLDMIMETYPE,}
pub const CRLFEOL: CMSOptions = CMSOptions{bits: ffi::CMS_CRLFEOL,}
pub const STREAM: CMSOptions = CMSOptions{bits: ffi::CMS_STREAM,}
pub const NOCRL: CMSOptions = CMSOptions{bits: ffi::CMS_NOCRL,}
pub const PARTIAL: CMSOptions = CMSOptions{bits: ffi::CMS_PARTIAL,}
pub const REUSE_DIGEST: CMSOptions = CMSOptions{bits: ffi::CMS_REUSE_DIGEST,}
pub const USE_KEYID: CMSOptions = CMSOptions{bits: ffi::CMS_USE_KEYID,}
pub const DEBUG_DECRYPT: CMSOptions = CMSOptions{bits: ffi::CMS_DEBUG_DECRYPT,}
sourcepub const fn empty() -> CMSOptions
pub const fn empty() -> CMSOptions
Returns an empty set of flags
sourcepub const fn all() -> CMSOptions
pub const fn all() -> CMSOptions
Returns the set containing all flags.
sourcepub fn from_bits(bits: c_uint) -> Option<CMSOptions>
pub fn from_bits(bits: c_uint) -> Option<CMSOptions>
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_uint) -> CMSOptions
pub const fn from_bits_truncate(bits: c_uint) -> CMSOptions
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(bits: c_uint) -> CMSOptions
pub const unsafe fn from_bits_unchecked(bits: c_uint) -> CMSOptions
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: CMSOptions) -> bool
pub const fn intersects(&self, other: CMSOptions) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: CMSOptions) -> bool
pub const fn contains(&self, other: CMSOptions) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: CMSOptions)
pub fn insert(&mut self, other: CMSOptions)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: CMSOptions)
pub fn remove(&mut self, other: CMSOptions)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: CMSOptions)
pub fn toggle(&mut self, other: CMSOptions)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: CMSOptions, value: bool)
pub fn set(&mut self, other: CMSOptions, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for CMSOptions
impl Binary for CMSOptions
sourceimpl BitAnd<CMSOptions> for CMSOptions
impl BitAnd<CMSOptions> for CMSOptions
sourcefn bitand(self, other: CMSOptions) -> CMSOptions
fn bitand(self, other: CMSOptions) -> CMSOptions
Returns the intersection between the two sets of flags.
type Output = CMSOptions
type Output = CMSOptions
The resulting type after applying the &
operator.
sourceimpl BitAndAssign<CMSOptions> for CMSOptions
impl BitAndAssign<CMSOptions> for CMSOptions
sourcefn bitand_assign(&mut self, other: CMSOptions)
fn bitand_assign(&mut self, other: CMSOptions)
Disables all flags disabled in the set.
sourceimpl BitOr<CMSOptions> for CMSOptions
impl BitOr<CMSOptions> for CMSOptions
sourcefn bitor(self, other: CMSOptions) -> CMSOptions
fn bitor(self, other: CMSOptions) -> CMSOptions
Returns the union of the two sets of flags.
type Output = CMSOptions
type Output = CMSOptions
The resulting type after applying the |
operator.
sourceimpl BitOrAssign<CMSOptions> for CMSOptions
impl BitOrAssign<CMSOptions> for CMSOptions
sourcefn bitor_assign(&mut self, other: CMSOptions)
fn bitor_assign(&mut self, other: CMSOptions)
Adds the set of flags.
sourceimpl BitXor<CMSOptions> for CMSOptions
impl BitXor<CMSOptions> for CMSOptions
sourcefn bitxor(self, other: CMSOptions) -> CMSOptions
fn bitxor(self, other: CMSOptions) -> CMSOptions
Returns the left flags, but with all the right flags toggled.
type Output = CMSOptions
type Output = CMSOptions
The resulting type after applying the ^
operator.
sourceimpl BitXorAssign<CMSOptions> for CMSOptions
impl BitXorAssign<CMSOptions> for CMSOptions
sourcefn bitxor_assign(&mut self, other: CMSOptions)
fn bitxor_assign(&mut self, other: CMSOptions)
Toggles the set of flags.
sourceimpl Clone for CMSOptions
impl Clone for CMSOptions
sourcefn clone(&self) -> CMSOptions
fn clone(&self) -> CMSOptions
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 CMSOptions
impl Debug for CMSOptions
sourceimpl Extend<CMSOptions> for CMSOptions
impl Extend<CMSOptions> for CMSOptions
sourcefn extend<T: IntoIterator<Item = CMSOptions>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = CMSOptions>>(&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<CMSOptions> for CMSOptions
impl FromIterator<CMSOptions> for CMSOptions
sourcefn from_iter<T: IntoIterator<Item = CMSOptions>>(iterator: T) -> CMSOptions
fn from_iter<T: IntoIterator<Item = CMSOptions>>(iterator: T) -> CMSOptions
Creates a value from an iterator. Read more
sourceimpl Hash for CMSOptions
impl Hash for CMSOptions
sourceimpl LowerHex for CMSOptions
impl LowerHex for CMSOptions
sourceimpl Not for CMSOptions
impl Not for CMSOptions
sourcefn not(self) -> CMSOptions
fn not(self) -> CMSOptions
Returns the complement of this set of flags.
type Output = CMSOptions
type Output = CMSOptions
The resulting type after applying the !
operator.
sourceimpl Octal for CMSOptions
impl Octal for CMSOptions
sourceimpl Ord for CMSOptions
impl Ord for CMSOptions
sourceimpl PartialEq<CMSOptions> for CMSOptions
impl PartialEq<CMSOptions> for CMSOptions
sourcefn eq(&self, other: &CMSOptions) -> bool
fn eq(&self, other: &CMSOptions) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &CMSOptions) -> bool
fn ne(&self, other: &CMSOptions) -> bool
This method tests for !=
.
sourceimpl PartialOrd<CMSOptions> for CMSOptions
impl PartialOrd<CMSOptions> for CMSOptions
sourcefn partial_cmp(&self, other: &CMSOptions) -> Option<Ordering>
fn partial_cmp(&self, other: &CMSOptions) -> 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<CMSOptions> for CMSOptions
impl Sub<CMSOptions> for CMSOptions
sourcefn sub(self, other: CMSOptions) -> CMSOptions
fn sub(self, other: CMSOptions) -> CMSOptions
Returns the set difference of the two sets of flags.
type Output = CMSOptions
type Output = CMSOptions
The resulting type after applying the -
operator.
sourceimpl SubAssign<CMSOptions> for CMSOptions
impl SubAssign<CMSOptions> for CMSOptions
sourcefn sub_assign(&mut self, other: CMSOptions)
fn sub_assign(&mut self, other: CMSOptions)
Disables all flags enabled in the set.
sourceimpl UpperHex for CMSOptions
impl UpperHex for CMSOptions
impl Copy for CMSOptions
impl Eq for CMSOptions
impl StructuralEq for CMSOptions
impl StructuralPartialEq for CMSOptions
Auto Trait Implementations
impl RefUnwindSafe for CMSOptions
impl Send for CMSOptions
impl Sync for CMSOptions
impl Unpin for CMSOptions
impl UnwindSafe for CMSOptions
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