Enum fefixs::Version[][src]

pub enum Version {
    V1Draft,
}
Expand description

Which version of FIX-over-TLS (FIXS) to use.

Variants

V1Draft

Draft of the FIXS version 1.0 standard.

Implementations

Returns a Vec of the suggested ciphersuites for TLS, according to self version. The ciphersuites are specified in IANA format.

use fefixs::Version;

let version = Version::V1Draft;
let ciphersuites_iana = version.recommended_cs_iana(false);
assert!(ciphersuites_iana.iter().any(|cs| cs == &"TLS_DHE_RSA_WITH_AES_128_GCM_SHA256"));

Returns a Vec of the suggested ciphersuites for TLS, according to self version. The ciphersuites are specified in OpenSSL’s format.

Examples:

use fefixs::Version;

let version = Version::V1Draft;
let ciphersuites_openssl = version.recommended_cs_openssl(false);
assert!(ciphersuites_openssl.iter().any(|cs| cs == &"DHE-RSA-AES128-GCM-SHA256"));

List all ciphersuites in a colon-separated format, like required by openssl-ciphers.

use fefixs::Version;

let version = Version::V1Draft;
let ciphersuites_openssl = version.recommended_cs_openssl(false);
let cipherlist = ciphersuites_openssl.join(":");
println!("Supported ciphers: {}", cipherlist);

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.