pub enum ClientAuthentication {
Secure {
connect_token: ConnectToken,
},
Unsecure {
protocol_id: u64,
client_id: u64,
server_addr: SocketAddr,
user_data: Option<[u8; 256]>,
},
}Expand description
Configuration to establish a secure or unsecure connection with the server.
Variants§
Secure
Establishes a safe connection with the server using the crate::ConnectToken.
See also crate::ServerAuthentication::Secure
Fields
§
connect_token: ConnectTokenUnsecure
Establishes an unsafe connection with the server, useful for testing and prototyping.
Trait Implementations§
Source§impl Clone for ClientAuthentication
impl Clone for ClientAuthentication
Source§fn clone(&self) -> ClientAuthentication
fn clone(&self) -> ClientAuthentication
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§
impl Freeze for ClientAuthentication
impl RefUnwindSafe for ClientAuthentication
impl Send for ClientAuthentication
impl Sync for ClientAuthentication
impl Unpin for ClientAuthentication
impl UnwindSafe for ClientAuthentication
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