#[non_exhaustive]pub struct OfferedKxGroup {
pub group: &'static dyn SupportedKxGroup,
pub has_key_share: bool,
}Expand description
A key exchange group offered by the client.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.group: &'static dyn SupportedKxGroupThe group, as implemented by the server’s provider.
Whether the client sent a key share for this group.
Always false for TLS 1.2.
Implementations§
Source§impl OfferedKxGroup
impl OfferedKxGroup
Sourcepub const fn new(
group: &'static dyn SupportedKxGroup,
has_key_share: bool,
) -> Self
pub const fn new( group: &'static dyn SupportedKxGroup, has_key_share: bool, ) -> Self
Creates a new OfferedKxGroup
Trait Implementations§
Source§impl Clone for OfferedKxGroup
impl Clone for OfferedKxGroup
impl Copy for OfferedKxGroup
Auto Trait Implementations§
impl !RefUnwindSafe for OfferedKxGroup
impl !UnwindSafe for OfferedKxGroup
impl Freeze for OfferedKxGroup
impl Send for OfferedKxGroup
impl Sync for OfferedKxGroup
impl Unpin for OfferedKxGroup
impl UnsafeUnpin for OfferedKxGroup
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