pub enum ServerAuthentication {
Secure {
private_key: [u8; 32],
},
Unsecure,
}
Expand description
Configuration to establish a secure or unsecure connection with the server.
Variants§
Secure
Establishes a safe connection using a private key for encryption. The private key cannot be shared with the client. Connections are stablished using crate::token::ConnectToken.
See also ClientAuthentication::Secure
Unsecure
Establishes unsafe connections with clients, useful for testing and prototyping.
See also ClientAuthentication::Unsecure
Auto Trait Implementations§
impl Freeze for ServerAuthentication
impl RefUnwindSafe for ServerAuthentication
impl Send for ServerAuthentication
impl Sync for ServerAuthentication
impl Unpin for ServerAuthentication
impl UnwindSafe for ServerAuthentication
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