pub struct Offer<'a> {
pub versions: &'a [TlsVersion],
pub cipher_suites: &'a [CipherSuite],
pub groups: &'a [NamedGroup],
pub signature_schemes: &'a [SignatureScheme],
pub cert_signature_schemes: &'a [SignatureScheme],
}Expand description
What an endpoint is configured to offer: the lists it sends in its hello.
The lists are shared by all enabled versions, as in a real ClientHello. Each item is judged against every enabled version it applies to.
Fields§
§versions: &'a [TlsVersion]Enabled protocol versions.
cipher_suites: &'a [CipherSuite]Enabled cipher suites, both versions together.
groups: &'a [NamedGroup]supported_groups.
signature_schemes: &'a [SignatureScheme]signature_algorithms.
cert_signature_schemes: &'a [SignatureScheme]signature_algorithms_cert. Left empty, it is taken to equal signature_schemes
(RFC 8446 §4.2.3) and checked against the certificate signature rules too.
Trait Implementations§
impl<'a> Copy for Offer<'a>
impl<'a> Eq for Offer<'a>
impl<'a> StructuralPartialEq for Offer<'a>
Auto Trait Implementations§
impl<'a> Forget for Offer<'a>
impl<'a> Freeze for Offer<'a>where
&'a [TlsVersion]: Freeze,
&'a [CipherSuite]: Freeze,
&'a [NamedGroup]: Freeze,
&'a [SignatureScheme]: Freeze,
impl<'a> Move for Offer<'a>
impl<'a> RefUnwindSafe for Offer<'a>
impl<'a> Send for Offer<'a>where
&'a [TlsVersion]: Send,
&'a [CipherSuite]: Send,
&'a [NamedGroup]: Send,
&'a [SignatureScheme]: Send,
impl<'a> Sync for Offer<'a>
impl<'a> Unpin for Offer<'a>where
&'a [TlsVersion]: Unpin,
&'a [CipherSuite]: Unpin,
&'a [NamedGroup]: Unpin,
&'a [SignatureScheme]: Unpin,
impl<'a> UnsafeUnpin for Offer<'a>where
&'a [TlsVersion]: UnsafeUnpin,
&'a [CipherSuite]: UnsafeUnpin,
&'a [NamedGroup]: UnsafeUnpin,
&'a [SignatureScheme]: UnsafeUnpin,
impl<'a> UnwindSafe for Offer<'a>where
&'a [TlsVersion]: UnwindSafe,
&'a [CipherSuite]: UnwindSafe,
&'a [NamedGroup]: UnwindSafe,
&'a [SignatureScheme]: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more