pub enum ClientError {
Show 20 variants
ConnectionFailed(String),
WebSocket(String),
ProxyAuthFailed(String),
InvalidPairingCode(String),
NoiseProtocol(String),
HandshakeFailed(String),
Timeout(String),
SecureChannelNotEstablished,
NotInitialized,
CredentialRequestFailed(String),
Serialization(String),
ConnectionCache(String),
KeypairStorage(String),
ChannelClosed,
IdentityStorageFailed(String),
RendezvousResolutionFailed(String),
InvalidRendezvousCode(String),
FingerprintRejected,
InvalidState {
expected: String,
current: String,
},
ConnectionNotFound,
}Expand description
Errors that can occur in the remote client
Variants§
ConnectionFailed(String)
Failed to connect to the proxy server
WebSocket(String)
WebSocket error occurred
ProxyAuthFailed(String)
Authentication with proxy failed
InvalidPairingCode(String)
Invalid pairing code format
NoiseProtocol(String)
Noise protocol error
HandshakeFailed(String)
Handshake failed
Timeout(String)
Timeout waiting for response
SecureChannelNotEstablished
Secure channel not established
NotInitialized
Client not initialized
CredentialRequestFailed(String)
Credential request failed
Serialization(String)
Serialization/deserialization error
ConnectionCache(String)
Connection cache error
KeypairStorage(String)
Keypair storage error
ChannelClosed
Channel closed unexpectedly
IdentityStorageFailed(String)
Identity storage error
RendezvousResolutionFailed(String)
Rendezvous code resolution failed
InvalidRendezvousCode(String)
Invalid rendezvous code format
FingerprintRejected
User rejected fingerprint verification
InvalidState
Invalid state for operation
ConnectionNotFound
Connection not found for fingerprint
Trait Implementations§
Source§impl Debug for ClientError
impl Debug for ClientError
Source§impl Display for ClientError
impl Display for ClientError
Source§impl Error for ClientError
impl Error for ClientError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl FlatError for ClientError
impl FlatError for ClientError
Source§fn error_variant(&self) -> &'static str
fn error_variant(&self) -> &'static str
Returns the name of the error variant as a static string.
Source§impl From<Error> for ClientError
impl From<Error> for ClientError
Source§impl From<NoiseProtocolError> for ClientError
impl From<NoiseProtocolError> for ClientError
Source§fn from(err: NoiseProtocolError) -> Self
fn from(err: NoiseProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<ProxyError> for ClientError
impl From<ProxyError> for ClientError
Source§fn from(err: ProxyError) -> Self
fn from(err: ProxyError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ClientError
impl RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl UnsafeUnpin for ClientError
impl UnwindSafe for ClientError
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