[]Struct openssl::ssl::SslOptions

pub struct SslOptions { /* fields omitted */ }

Options controlling the behavior of an SslContext.

Methods

impl SslOptions

Disables a countermeasure against an SSLv3/TLSv1.0 vulnerability affecting CBC ciphers.

A "reasonable default" set of options which enables compatibility flags.

Do not query the MTU.

Only affects DTLS connections.

Enables Cookie Exchange as described in RFC 4347 Section 4.2.1.

Only affects DTLS connections.

Disables the use of session tickets for session resumption.

Always start a new session when performing a renegotiation on the server side.

Disables the use of TLS compression.

Allow legacy insecure renegotiation with servers or clients that do not support secure renegotiation.

Creates a new key for each session when using ECDHE.

This is always enabled in OpenSSL 1.1.0.

Creates a new key for each session when using DHE.

This is always enabled in OpenSSL 1.1.0.

Use the server's preferences rather than the client's when selecting a cipher.

This has no effect on the client side.

Disables version rollback attach detection.

Disables the use of SSLv2.

Disables the use of SSLv3.

Disables the use of TLSv1.0.

Disables the use of TLSv1.1.

Disables the use of TLSv1.2.

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

Trait Implementations

impl PartialOrd<SslOptions> for SslOptions

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for SslOptions

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl PartialEq<SslOptions> for SslOptions

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Clone for SslOptions

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Extend<SslOptions> for SslOptions

Extends a collection with the contents of an iterator. Read more

impl Copy for SslOptions

impl Eq for SslOptions

impl Hash for SslOptions

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Sub<SslOptions> for SslOptions

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign<SslOptions> for SslOptions

Disables all flags enabled in the set.

impl Not for SslOptions

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl BitAnd<SslOptions> for SslOptions

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitOr<SslOptions> for SslOptions

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitXor<SslOptions> for SslOptions

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitAndAssign<SslOptions> for SslOptions

Disables all flags disabled in the set.

impl BitOrAssign<SslOptions> for SslOptions

Adds the set of flags.

impl BitXorAssign<SslOptions> for SslOptions

Toggles the set of flags.

impl FromIterator<SslOptions> for SslOptions

Creates a value from an iterator. Read more

impl Debug for SslOptions

Formats the value using the given formatter. Read more

impl Octal for SslOptions

Formats the value using the given formatter.

impl Binary for SslOptions

Formats the value using the given formatter.

impl LowerHex for SslOptions

Formats the value using the given formatter.

impl UpperHex for SslOptions

Formats the value using the given formatter.

Auto Trait Implementations

impl Send for SslOptions

impl Sync for SslOptions

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

Creates owned data from borrowed data, usually by cloning. Read more

🔬 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> From for T
[src]

Performs the conversion.

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Borrow for T where
    T: ?Sized
[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut for T where
    T: ?Sized
[src]

Mutably borrows from an owned value. Read more

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

🔬 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