pub enum AuthenticatorMode {
NoCryptography(AuthenticationProperties),
AttemptList(Vec<AuthenticatorMode>),
}Available on crate feature
client only.Expand description
Modes for exchanging keys between client and server.
This enum represents the different methods by which keys (e.g., Diffie-Hellman) are exchanged for securing communication. Although communication is primarily done using UDP, if a TCP or TLS authenticator is used, the Diffie-Hellman keys are exchanged accordingly. These keys are then used for encrypting data throughout the UDP connection.
Variants§
NoCryptography(AuthenticationProperties)
No cryptographic exchange, using only the provided authentication properties.
AttemptList(Vec<AuthenticatorMode>)
Attempts a list of authenticator modes in sequence until one succeeds.
Auto Trait Implementations§
impl Freeze for AuthenticatorMode
impl RefUnwindSafe for AuthenticatorMode
impl Send for AuthenticatorMode
impl Sync for AuthenticatorMode
impl Unpin for AuthenticatorMode
impl UnwindSafe for AuthenticatorMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more