#[non_exhaustive]pub enum StartedKeyExchange {
Single(Box<dyn ActiveKeyExchange>),
Hybrid(Box<dyn HybridKeyExchange>),
}
Expand description
Return value from SupportedKxGroup::start()
.
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.
Single(Box<dyn ActiveKeyExchange>)
A single ActiveKeyExchange
.
Hybrid(Box<dyn HybridKeyExchange>)
A HybridKeyExchange
that can potentially be split.
Implementations§
Source§impl StartedKeyExchange
impl StartedKeyExchange
Sourcepub fn into_single(self) -> Box<dyn ActiveKeyExchange>
pub fn into_single(self) -> Box<dyn ActiveKeyExchange>
Collapses this object into its underlying ActiveKeyExchange
.
This removes the ability to do the hybrid key exchange optimization, but still allows the key exchange as a whole to be completed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StartedKeyExchange
impl !RefUnwindSafe for StartedKeyExchange
impl Send for StartedKeyExchange
impl Sync for StartedKeyExchange
impl Unpin for StartedKeyExchange
impl !UnwindSafe for StartedKeyExchange
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