[−]Struct openssl::ssl::SslSessionCacheMode  
Options controlling the behavior of session caching.
Methods
impl SslSessionCacheMode
impl SslSessionCacheModepub const OFF: SslSessionCacheMode
No session caching for the client or server takes place.
pub const CLIENT: SslSessionCacheMode
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
Enable session caching on the server side.
This is the default mode.
pub const BOTH: SslSessionCacheMode
Enable session caching on both the client and server side.
pub const NO_AUTO_CLEAR: SslSessionCacheMode
Disable automatic removal of expired sessions from the session cache.
pub const NO_INTERNAL_LOOKUP: SslSessionCacheMode
Disable use of the internal session cache for session lookups.
pub const NO_INTERNAL_STORE: SslSessionCacheMode
Disable use of the internal session cache for session storage.
pub const NO_INTERNAL: SslSessionCacheMode
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 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 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 Copy for SslSessionCacheMode
impl Copy for SslSessionCacheModeimpl Eq for SslSessionCacheMode
impl Eq for SslSessionCacheModeimpl PartialOrd<SslSessionCacheMode> for SslSessionCacheMode
impl PartialOrd<SslSessionCacheMode> 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 PartialEq<SslSessionCacheMode> for SslSessionCacheMode
impl PartialEq<SslSessionCacheMode> 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 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 Sub<SslSessionCacheMode> for SslSessionCacheMode
impl Sub<SslSessionCacheMode> 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<SslSessionCacheMode> for SslSessionCacheMode
impl SubAssign<SslSessionCacheMode> 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 BitAnd<SslSessionCacheMode> for SslSessionCacheMode
impl BitAnd<SslSessionCacheMode> 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 BitOr<SslSessionCacheMode> for SslSessionCacheMode
impl BitOr<SslSessionCacheMode> 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 BitXor<SslSessionCacheMode> for SslSessionCacheMode
impl BitXor<SslSessionCacheMode> 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 BitAndAssign<SslSessionCacheMode> for SslSessionCacheMode
impl BitAndAssign<SslSessionCacheMode> for SslSessionCacheModefn bitand_assign(&mut self, other: SslSessionCacheMode)
fn bitand_assign(&mut self, other: SslSessionCacheMode)Disables all flags disabled in the set.
impl BitOrAssign<SslSessionCacheMode> for SslSessionCacheMode
impl BitOrAssign<SslSessionCacheMode> for SslSessionCacheModefn bitor_assign(&mut self, other: SslSessionCacheMode)
fn bitor_assign(&mut self, other: SslSessionCacheMode)Adds the set of flags.
impl BitXorAssign<SslSessionCacheMode> for SslSessionCacheMode
impl BitXorAssign<SslSessionCacheMode> for SslSessionCacheModefn bitxor_assign(&mut self, other: SslSessionCacheMode)
fn bitxor_assign(&mut self, other: SslSessionCacheMode)Toggles the set of flags.
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
impl Octal for SslSessionCacheMode
impl Octal for SslSessionCacheModeimpl Binary for SslSessionCacheMode
impl Binary for SslSessionCacheModeimpl LowerHex for SslSessionCacheMode
impl LowerHex for SslSessionCacheModeimpl UpperHex for SslSessionCacheMode
impl UpperHex for SslSessionCacheModeAuto Trait Implementations
impl Send for SslSessionCacheMode
impl Send for SslSessionCacheModeimpl Sync for SslSessionCacheMode
impl Sync for SslSessionCacheModeBlanket 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