Struct openssl::ssl::SslSessionCacheMode [−]
pub struct SslSessionCacheMode { /* fields omitted */ }Options controlling the behavior of session caching.
Methods
impl SslSessionCacheMode
impl SslSessionCacheModepub const OFF: SslSessionCacheMode
OFF: SslSessionCacheMode = SslSessionCacheMode{bits: ffi::SSL_SESS_CACHE_OFF,}
No session caching for the client or server takes place.
pub const CLIENT: SslSessionCacheMode
CLIENT: SslSessionCacheMode = SslSessionCacheMode{bits: ffi::SSL_SESS_CACHE_CLIENT,}
Enable session caching on the client side.
OpenSSL has no way of identifying the proper session to reuse automatically, so the
application is responsible for setting it explicitly via SslRef::set_session.
pub const SERVER: SslSessionCacheMode
SERVER: SslSessionCacheMode = SslSessionCacheMode{bits: ffi::SSL_SESS_CACHE_SERVER,}
Enable session caching on the server side.
This is the default mode.
pub const BOTH: SslSessionCacheMode
BOTH: SslSessionCacheMode = SslSessionCacheMode{bits: ffi::SSL_SESS_CACHE_BOTH,}
Enable session caching on both the client and server side.
pub const NO_AUTO_CLEAR: SslSessionCacheMode
NO_AUTO_CLEAR: SslSessionCacheMode = SslSessionCacheMode{bits: ffi::SSL_SESS_CACHE_NO_AUTO_CLEAR,}
Disable automatic removal of expired sessions from the session cache.
pub const NO_INTERNAL_LOOKUP: SslSessionCacheMode
NO_INTERNAL_LOOKUP: SslSessionCacheMode = SslSessionCacheMode{bits: ffi::SSL_SESS_CACHE_NO_INTERNAL_LOOKUP,}
Disable use of the internal session cache for session lookups.
pub const NO_INTERNAL_STORE: SslSessionCacheMode
NO_INTERNAL_STORE: SslSessionCacheMode = SslSessionCacheMode{bits: ffi::SSL_SESS_CACHE_NO_INTERNAL_STORE,}
Disable use of the internal session cache for session storage.
pub const NO_INTERNAL: SslSessionCacheMode
NO_INTERNAL: SslSessionCacheMode = SslSessionCacheMode{bits: ffi::SSL_SESS_CACHE_NO_INTERNAL,}
Disable use of the internal session cache for storage and lookup.
pub fn empty() -> SslSessionCacheMode
pub fn empty() -> SslSessionCacheModeReturns an empty set of flags.
pub fn all() -> SslSessionCacheMode
pub fn all() -> SslSessionCacheModeReturns the set containing all flags.
pub fn bits(&self) -> c_long
pub fn bits(&self) -> c_longReturns the raw value of the flags currently stored.
pub fn from_bits(bits: c_long) -> Option<SslSessionCacheMode>
pub fn from_bits(bits: c_long) -> Option<SslSessionCacheMode>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_long) -> SslSessionCacheMode
pub fn from_bits_truncate(bits: c_long) -> SslSessionCacheModeConvert 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: SslSessionCacheMode) -> bool
pub fn intersects(&self, other: SslSessionCacheMode) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: SslSessionCacheMode) -> bool
pub fn contains(&self, other: SslSessionCacheMode) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: SslSessionCacheMode)
pub fn insert(&mut self, other: SslSessionCacheMode)Inserts the specified flags in-place.
pub fn remove(&mut self, other: SslSessionCacheMode)
pub fn remove(&mut self, other: SslSessionCacheMode)Removes the specified flags in-place.
pub fn toggle(&mut self, other: SslSessionCacheMode)
pub fn toggle(&mut self, other: SslSessionCacheMode)Toggles the specified flags in-place.
pub fn set(&mut self, other: SslSessionCacheMode, value: bool)
pub fn set(&mut self, other: SslSessionCacheMode, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for SslSessionCacheMode
impl Copy for SslSessionCacheModeimpl PartialEq for SslSessionCacheMode
impl PartialEq for SslSessionCacheModefn eq(&self, other: &SslSessionCacheMode) -> bool
fn eq(&self, other: &SslSessionCacheMode) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SslSessionCacheMode) -> bool
fn ne(&self, other: &SslSessionCacheMode) -> boolThis method tests for !=.
impl Eq for SslSessionCacheMode
impl Eq for SslSessionCacheModeimpl Clone for SslSessionCacheMode
impl Clone for SslSessionCacheModefn clone(&self) -> SslSessionCacheMode
fn clone(&self) -> SslSessionCacheModeReturns 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 SslSessionCacheMode
impl PartialOrd for SslSessionCacheModefn partial_cmp(&self, other: &SslSessionCacheMode) -> Option<Ordering>
fn partial_cmp(&self, other: &SslSessionCacheMode) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &SslSessionCacheMode) -> bool
fn lt(&self, other: &SslSessionCacheMode) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &SslSessionCacheMode) -> bool
fn le(&self, other: &SslSessionCacheMode) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &SslSessionCacheMode) -> bool
fn gt(&self, other: &SslSessionCacheMode) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &SslSessionCacheMode) -> bool
fn ge(&self, other: &SslSessionCacheMode) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for SslSessionCacheMode
impl Ord for SslSessionCacheModefn cmp(&self, other: &SslSessionCacheMode) -> Ordering
fn cmp(&self, other: &SslSessionCacheMode) -> 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 SslSessionCacheMode
impl Hash for SslSessionCacheModefn 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 SslSessionCacheMode
impl Debug for SslSessionCacheModeimpl Binary for SslSessionCacheMode
impl Binary for SslSessionCacheModeimpl Octal for SslSessionCacheMode
impl Octal for SslSessionCacheModeimpl LowerHex for SslSessionCacheMode
impl LowerHex for SslSessionCacheModeimpl UpperHex for SslSessionCacheMode
impl UpperHex for SslSessionCacheModeimpl BitOr for SslSessionCacheMode
impl BitOr for SslSessionCacheModetype Output = SslSessionCacheMode
The resulting type after applying the | operator.
fn bitor(self, other: SslSessionCacheMode) -> SslSessionCacheMode
fn bitor(self, other: SslSessionCacheMode) -> SslSessionCacheModeReturns the union of the two sets of flags.
impl BitOrAssign for SslSessionCacheMode
impl BitOrAssign for SslSessionCacheModefn bitor_assign(&mut self, other: SslSessionCacheMode)
fn bitor_assign(&mut self, other: SslSessionCacheMode)Adds the set of flags.
impl BitXor for SslSessionCacheMode
impl BitXor for SslSessionCacheModetype Output = SslSessionCacheMode
The resulting type after applying the ^ operator.
fn bitxor(self, other: SslSessionCacheMode) -> SslSessionCacheMode
fn bitxor(self, other: SslSessionCacheMode) -> SslSessionCacheModeReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for SslSessionCacheMode
impl BitXorAssign for SslSessionCacheModefn bitxor_assign(&mut self, other: SslSessionCacheMode)
fn bitxor_assign(&mut self, other: SslSessionCacheMode)Toggles the set of flags.
impl BitAnd for SslSessionCacheMode
impl BitAnd for SslSessionCacheModetype Output = SslSessionCacheMode
The resulting type after applying the & operator.
fn bitand(self, other: SslSessionCacheMode) -> SslSessionCacheMode
fn bitand(self, other: SslSessionCacheMode) -> SslSessionCacheModeReturns the intersection between the two sets of flags.
impl BitAndAssign for SslSessionCacheMode
impl BitAndAssign for SslSessionCacheModefn bitand_assign(&mut self, other: SslSessionCacheMode)
fn bitand_assign(&mut self, other: SslSessionCacheMode)Disables all flags disabled in the set.
impl Sub for SslSessionCacheMode
impl Sub for SslSessionCacheModetype Output = SslSessionCacheMode
The resulting type after applying the - operator.
fn sub(self, other: SslSessionCacheMode) -> SslSessionCacheMode
fn sub(self, other: SslSessionCacheMode) -> SslSessionCacheModeReturns the set difference of the two sets of flags.
impl SubAssign for SslSessionCacheMode
impl SubAssign for SslSessionCacheModefn sub_assign(&mut self, other: SslSessionCacheMode)
fn sub_assign(&mut self, other: SslSessionCacheMode)Disables all flags enabled in the set.
impl Not for SslSessionCacheMode
impl Not for SslSessionCacheModetype Output = SslSessionCacheMode
The resulting type after applying the ! operator.
fn not(self) -> SslSessionCacheMode
fn not(self) -> SslSessionCacheModeReturns the complement of this set of flags.
impl Extend<SslSessionCacheMode> for SslSessionCacheMode
impl Extend<SslSessionCacheMode> for SslSessionCacheModefn extend<T: IntoIterator<Item = SslSessionCacheMode>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = SslSessionCacheMode>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<SslSessionCacheMode> for SslSessionCacheMode
impl FromIterator<SslSessionCacheMode> for SslSessionCacheModefn from_iter<T: IntoIterator<Item = SslSessionCacheMode>>(
iterator: T
) -> SslSessionCacheMode
fn from_iter<T: IntoIterator<Item = SslSessionCacheMode>>(
iterator: T
) -> SslSessionCacheModeCreates a value from an iterator. Read more
Auto Trait Implementations
impl Send for SslSessionCacheMode
impl Send for SslSessionCacheModeimpl Sync for SslSessionCacheMode
impl Sync for SslSessionCacheMode