pub enum ConnectionMode {
New {
rendezvous_code: String,
},
NewPsk {
psk: Psk,
remote_fingerprint: IdentityFingerprint,
},
Existing {
remote_fingerprint: IdentityFingerprint,
},
}Expand description
Connection mode for establishing a connection
Variants§
New
New connection requiring rendezvous code pairing
NewPsk
New connection using PSK authentication
Existing
Existing connection using cached remote fingerprint
Fields
§
remote_fingerprint: IdentityFingerprintTrait Implementations§
Source§impl Clone for ConnectionMode
impl Clone for ConnectionMode
Source§fn clone(&self) -> ConnectionMode
fn clone(&self) -> ConnectionMode
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 ConnectionMode
impl RefUnwindSafe for ConnectionMode
impl Send for ConnectionMode
impl Sync for ConnectionMode
impl Unpin for ConnectionMode
impl UnsafeUnpin for ConnectionMode
impl UnwindSafe for ConnectionMode
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