#[non_exhaustive]pub enum PresharedKeySelection {
Enabled(Arc<dyn SelectsPresharedKeys>),
Required(Arc<dyn SelectsPresharedKeys>),
Disabled,
}Expand description
Determines how TLS 1.3 preshared keys are supported.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Enabled(Arc<dyn SelectsPresharedKeys>)
Preshared keys are enabled.
Required(Arc<dyn SelectsPresharedKeys>)
Preshared keys are required.
The server will abort the connection if the client does not provide a valid preshared key.
Disabled
Preshared keys are disabled.
Trait Implementations§
Source§fn clone(&self) -> PresharedKeySelection
fn clone(&self) -> PresharedKeySelection
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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