#[non_exhaustive]pub struct Compatibilities {
pub tls12: Compatibility,
pub tls13: Compatibility,
}Expand description
The current Linux kernel’s kTLS cipher suites compatibility.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.tls12: CompatibilityTLS 1.2 cipher suite compatibility.
tls13: CompatibilityTLS 1.3 cipher suite compatibility.
Implementations§
Source§impl Compatibilities
impl Compatibilities
Sourcepub fn probe() -> Result<Option<Self>>
pub fn probe() -> Result<Option<Self>>
Probes the current Linux kernel for kTLS cipher suites compatibility.
Returns Ok(None) if the running kernel does not support kTLS, e.g.,
tls module is not available. If the kernel is modern enough (at least
5.4), it should support kTLS but might not have tls module loaded.
The caller can cache the successful result of this method, while the
supporting cipher suites are unlikely to change during the program’s
lifetime. Note that the attempt to configure TLS ULP still might fail
due to kTLS being unsupported, while the tls module can be loaded
/ unloaded at runtime.
The caller may check the returned Compatibilitys with
Compatibility::is_unsupported to see whether the desired TLS
version is totally unsupported.
§Errors
Trait Implementations§
Source§impl Clone for Compatibilities
impl Clone for Compatibilities
Source§fn clone(&self) -> Compatibilities
fn clone(&self) -> Compatibilities
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more