pub enum UserClientEvent {
Show 17 variants
Listening {},
RendezvousCodeGenerated {
code: String,
},
PskTokenGenerated {
token: String,
},
HandshakeStart {},
HandshakeProgress {
message: String,
},
HandshakeComplete {},
HandshakeFingerprint {
fingerprint: String,
identity: IdentityFingerprint,
},
FingerprintVerified {},
FingerprintRejected {
reason: String,
},
CredentialRequest {
query: CredentialQuery,
request_id: String,
session_id: String,
},
CredentialApproved {
domain: Option<String>,
credential_id: Option<String>,
},
CredentialDenied {
domain: Option<String>,
credential_id: Option<String>,
},
SessionRefreshed {
fingerprint: IdentityFingerprint,
},
ClientDisconnected {},
Reconnecting {
attempt: u32,
},
Reconnected {},
Error {
message: String,
context: Option<String>,
},
}Expand description
Events emitted by the user client during operation
Variants§
Listening
Started listening for connections
RendezvousCodeGenerated
Rendezvous code was generated
PskTokenGenerated
PSK token was generated
HandshakeStart
Noise handshake started
HandshakeProgress
Noise handshake progress
HandshakeComplete
Noise handshake complete
HandshakeFingerprint
Handshake fingerprint requires verification
Fields
§
identity: IdentityFingerprintThe remote device’s stable identity fingerprint
FingerprintVerified
Fingerprint was verified and connection accepted
FingerprintRejected
Fingerprint was rejected and connection discarded
CredentialRequest
Credential request received
Fields
§
query: CredentialQueryThe credential query
CredentialApproved
Credential was approved and sent
Fields
CredentialDenied
Credential was denied
Fields
SessionRefreshed
A known/cached device reconnected — transport keys refreshed, no re-verification needed
Fields
§
fingerprint: IdentityFingerprintThe remote device’s identity fingerprint
ClientDisconnected
Client disconnected from proxy
Reconnecting
Attempting to reconnect to proxy
Reconnected
Successfully reconnected to proxy
Error
An error occurred
Trait Implementations§
Source§impl Clone for UserClientEvent
impl Clone for UserClientEvent
Source§fn clone(&self) -> UserClientEvent
fn clone(&self) -> UserClientEvent
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 UserClientEvent
impl RefUnwindSafe for UserClientEvent
impl Send for UserClientEvent
impl Sync for UserClientEvent
impl Unpin for UserClientEvent
impl UnsafeUnpin for UserClientEvent
impl UnwindSafe for UserClientEvent
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