Struct openssl::ocsp::OcspFlag [−]
pub struct OcspFlag { /* fields omitted */ }
Methods
impl OcspFlag
impl OcspFlag
pub const NO_CERTS: OcspFlag
NO_CERTS: OcspFlag = OcspFlag{bits: ffi::OCSP_NOCERTS,}
pub const NO_INTERN: OcspFlag
NO_INTERN: OcspFlag = OcspFlag{bits: ffi::OCSP_NOINTERN,}
pub const NO_CHAIN: OcspFlag
NO_CHAIN: OcspFlag = OcspFlag{bits: ffi::OCSP_NOCHAIN,}
pub const NO_VERIFY: OcspFlag
NO_VERIFY: OcspFlag = OcspFlag{bits: ffi::OCSP_NOVERIFY,}
pub const NO_EXPLICIT: OcspFlag
NO_EXPLICIT: OcspFlag = OcspFlag{bits: ffi::OCSP_NOEXPLICIT,}
pub const NO_CA_SIGN: OcspFlag
NO_CA_SIGN: OcspFlag = OcspFlag{bits: ffi::OCSP_NOCASIGN,}
pub const NO_DELEGATED: OcspFlag
NO_DELEGATED: OcspFlag = OcspFlag{bits: ffi::OCSP_NODELEGATED,}
pub const NO_CHECKS: OcspFlag
NO_CHECKS: OcspFlag = OcspFlag{bits: ffi::OCSP_NOCHECKS,}
pub const TRUST_OTHER: OcspFlag
TRUST_OTHER: OcspFlag = OcspFlag{bits: ffi::OCSP_TRUSTOTHER,}
pub const RESPID_KEY: OcspFlag
RESPID_KEY: OcspFlag = OcspFlag{bits: ffi::OCSP_RESPID_KEY,}
pub const NO_TIME: OcspFlag
NO_TIME: OcspFlag = OcspFlag{bits: ffi::OCSP_NOTIME,}
pub fn empty() -> OcspFlag
pub fn empty() -> OcspFlag
Returns an empty set of flags.
pub fn all() -> OcspFlag
pub fn all() -> OcspFlag
Returns the set containing all flags.
pub fn bits(&self) -> c_ulong
pub fn bits(&self) -> c_ulong
Returns the raw value of the flags currently stored.
pub fn from_bits(bits: c_ulong) -> Option<OcspFlag>
pub fn from_bits(bits: c_ulong) -> Option<OcspFlag>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_ulong) -> OcspFlag
pub fn from_bits_truncate(bits: c_ulong) -> OcspFlag
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> bool
Returns true
if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> bool
Returns true
if all flags are currently set.
pub fn intersects(&self, other: OcspFlag) -> bool
pub fn intersects(&self, other: OcspFlag) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: OcspFlag) -> bool
pub fn contains(&self, other: OcspFlag) -> bool
Returns true
all of the flags in other
are contained within self
.
pub fn insert(&mut self, other: OcspFlag)
pub fn insert(&mut self, other: OcspFlag)
Inserts the specified flags in-place.
pub fn remove(&mut self, other: OcspFlag)
pub fn remove(&mut self, other: OcspFlag)
Removes the specified flags in-place.
pub fn toggle(&mut self, other: OcspFlag)
pub fn toggle(&mut self, other: OcspFlag)
Toggles the specified flags in-place.
pub fn set(&mut self, other: OcspFlag, value: bool)
pub fn set(&mut self, other: OcspFlag, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for OcspFlag
impl Copy for OcspFlag
impl PartialEq for OcspFlag
impl PartialEq for OcspFlag
fn eq(&self, other: &OcspFlag) -> bool
fn eq(&self, other: &OcspFlag) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &OcspFlag) -> bool
fn ne(&self, other: &OcspFlag) -> bool
This method tests for !=
.
impl Eq for OcspFlag
impl Eq for OcspFlag
impl Clone for OcspFlag
impl Clone for OcspFlag
fn clone(&self) -> OcspFlag
fn clone(&self) -> OcspFlag
Returns 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 PartialOrd for OcspFlag
impl PartialOrd for OcspFlag
fn partial_cmp(&self, other: &OcspFlag) -> Option<Ordering>
fn partial_cmp(&self, other: &OcspFlag) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &OcspFlag) -> bool
fn lt(&self, other: &OcspFlag) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &OcspFlag) -> bool
fn le(&self, other: &OcspFlag) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &OcspFlag) -> bool
fn gt(&self, other: &OcspFlag) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &OcspFlag) -> bool
fn ge(&self, other: &OcspFlag) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Ord for OcspFlag
impl Ord for OcspFlag
fn cmp(&self, other: &OcspFlag) -> Ordering
fn cmp(&self, other: &OcspFlag) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl Hash for OcspFlag
impl Hash for OcspFlag
fn 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 OcspFlag
impl Debug for OcspFlag
impl Binary for OcspFlag
impl Binary for OcspFlag
impl Octal for OcspFlag
impl Octal for OcspFlag
impl LowerHex for OcspFlag
impl LowerHex for OcspFlag
impl UpperHex for OcspFlag
impl UpperHex for OcspFlag
impl BitOr for OcspFlag
impl BitOr for OcspFlag
type Output = OcspFlag
The resulting type after applying the |
operator.
fn bitor(self, other: OcspFlag) -> OcspFlag
fn bitor(self, other: OcspFlag) -> OcspFlag
Returns the union of the two sets of flags.
impl BitOrAssign for OcspFlag
impl BitOrAssign for OcspFlag
fn bitor_assign(&mut self, other: OcspFlag)
fn bitor_assign(&mut self, other: OcspFlag)
Adds the set of flags.
impl BitXor for OcspFlag
impl BitXor for OcspFlag
type Output = OcspFlag
The resulting type after applying the ^
operator.
fn bitxor(self, other: OcspFlag) -> OcspFlag
fn bitxor(self, other: OcspFlag) -> OcspFlag
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for OcspFlag
impl BitXorAssign for OcspFlag
fn bitxor_assign(&mut self, other: OcspFlag)
fn bitxor_assign(&mut self, other: OcspFlag)
Toggles the set of flags.
impl BitAnd for OcspFlag
impl BitAnd for OcspFlag
type Output = OcspFlag
The resulting type after applying the &
operator.
fn bitand(self, other: OcspFlag) -> OcspFlag
fn bitand(self, other: OcspFlag) -> OcspFlag
Returns the intersection between the two sets of flags.
impl BitAndAssign for OcspFlag
impl BitAndAssign for OcspFlag
fn bitand_assign(&mut self, other: OcspFlag)
fn bitand_assign(&mut self, other: OcspFlag)
Disables all flags disabled in the set.
impl Sub for OcspFlag
impl Sub for OcspFlag
type Output = OcspFlag
The resulting type after applying the -
operator.
fn sub(self, other: OcspFlag) -> OcspFlag
fn sub(self, other: OcspFlag) -> OcspFlag
Returns the set difference of the two sets of flags.
impl SubAssign for OcspFlag
impl SubAssign for OcspFlag
fn sub_assign(&mut self, other: OcspFlag)
fn sub_assign(&mut self, other: OcspFlag)
Disables all flags enabled in the set.
impl Not for OcspFlag
impl Not for OcspFlag
type Output = OcspFlag
The resulting type after applying the !
operator.
fn not(self) -> OcspFlag
fn not(self) -> OcspFlag
Returns the complement of this set of flags.
impl Extend<OcspFlag> for OcspFlag
impl Extend<OcspFlag> for OcspFlag
fn extend<T: IntoIterator<Item = OcspFlag>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = OcspFlag>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
impl FromIterator<OcspFlag> for OcspFlag
impl FromIterator<OcspFlag> for OcspFlag
fn from_iter<T: IntoIterator<Item = OcspFlag>>(iterator: T) -> OcspFlag
fn from_iter<T: IntoIterator<Item = OcspFlag>>(iterator: T) -> OcspFlag
Creates a value from an iterator. Read more