Struct openssl::ssl::SslSessionCacheMode [−]
pub struct SslSessionCacheMode { /* fields omitted */ }
Options controlling the behavior of session caching.
Methods
impl SslSessionCacheMode
impl SslSessionCacheMode
pub 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() -> SslSessionCacheMode
Returns an empty set of flags.
pub fn all() -> SslSessionCacheMode
pub fn all() -> SslSessionCacheMode
Returns the set containing all flags.
pub fn bits(&self) -> c_long
pub fn bits(&self) -> c_long
Returns 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) -> SslSessionCacheMode
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: SslSessionCacheMode) -> bool
pub fn intersects(&self, other: SslSessionCacheMode) -> bool
Returns true
if there are flags common to both self
and other
.
pub fn contains(&self, other: SslSessionCacheMode) -> bool
pub fn contains(&self, other: SslSessionCacheMode) -> bool
Returns 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 SslSessionCacheMode
impl PartialEq for SslSessionCacheMode
impl PartialEq for SslSessionCacheMode
fn eq(&self, other: &SslSessionCacheMode) -> bool
fn eq(&self, other: &SslSessionCacheMode) -> bool
This 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) -> bool
This method tests for !=
.
impl Eq for SslSessionCacheMode
impl Eq for SslSessionCacheMode
impl Clone for SslSessionCacheMode
impl Clone for SslSessionCacheMode
fn clone(&self) -> SslSessionCacheMode
fn clone(&self) -> SslSessionCacheMode
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 SslSessionCacheMode
impl PartialOrd for SslSessionCacheMode
fn 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) -> bool
This 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) -> 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: &SslSessionCacheMode) -> bool
fn gt(&self, other: &SslSessionCacheMode) -> bool
This 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) -> bool
This 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 SslSessionCacheMode
fn cmp(&self, other: &SslSessionCacheMode) -> Ordering
fn cmp(&self, other: &SslSessionCacheMode) -> 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 SslSessionCacheMode
impl Hash for SslSessionCacheMode
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 SslSessionCacheMode
impl Debug for SslSessionCacheMode
impl Binary for SslSessionCacheMode
impl Binary for SslSessionCacheMode
impl Octal for SslSessionCacheMode
impl Octal for SslSessionCacheMode
impl LowerHex for SslSessionCacheMode
impl LowerHex for SslSessionCacheMode
impl UpperHex for SslSessionCacheMode
impl UpperHex for SslSessionCacheMode
impl BitOr for SslSessionCacheMode
impl BitOr for SslSessionCacheMode
type Output = SslSessionCacheMode
The resulting type after applying the |
operator.
fn bitor(self, other: SslSessionCacheMode) -> SslSessionCacheMode
fn bitor(self, other: SslSessionCacheMode) -> SslSessionCacheMode
Returns the union of the two sets of flags.
impl BitOrAssign for SslSessionCacheMode
impl BitOrAssign for SslSessionCacheMode
fn 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 SslSessionCacheMode
type Output = SslSessionCacheMode
The resulting type after applying the ^
operator.
fn bitxor(self, other: SslSessionCacheMode) -> SslSessionCacheMode
fn bitxor(self, other: SslSessionCacheMode) -> SslSessionCacheMode
Returns the left flags, but with all the right flags toggled.
impl BitXorAssign for SslSessionCacheMode
impl BitXorAssign for SslSessionCacheMode
fn 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 SslSessionCacheMode
type Output = SslSessionCacheMode
The resulting type after applying the &
operator.
fn bitand(self, other: SslSessionCacheMode) -> SslSessionCacheMode
fn bitand(self, other: SslSessionCacheMode) -> SslSessionCacheMode
Returns the intersection between the two sets of flags.
impl BitAndAssign for SslSessionCacheMode
impl BitAndAssign for SslSessionCacheMode
fn 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 SslSessionCacheMode
type Output = SslSessionCacheMode
The resulting type after applying the -
operator.
fn sub(self, other: SslSessionCacheMode) -> SslSessionCacheMode
fn sub(self, other: SslSessionCacheMode) -> SslSessionCacheMode
Returns the set difference of the two sets of flags.
impl SubAssign for SslSessionCacheMode
impl SubAssign for SslSessionCacheMode
fn 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 SslSessionCacheMode
type Output = SslSessionCacheMode
The resulting type after applying the !
operator.
fn not(self) -> SslSessionCacheMode
fn not(self) -> SslSessionCacheMode
Returns the complement of this set of flags.
impl Extend<SslSessionCacheMode> for SslSessionCacheMode
impl Extend<SslSessionCacheMode> for SslSessionCacheMode
fn 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 SslSessionCacheMode
fn from_iter<T: IntoIterator<Item = SslSessionCacheMode>>(
iterator: T
) -> SslSessionCacheMode
fn from_iter<T: IntoIterator<Item = SslSessionCacheMode>>(
iterator: T
) -> SslSessionCacheMode
Creates a value from an iterator. Read more
Auto Trait Implementations
impl Send for SslSessionCacheMode
impl Send for SslSessionCacheMode
impl Sync for SslSessionCacheMode
impl Sync for SslSessionCacheMode