pub enum RemoteClientError {
Show 20 variants
ConnectionFailed(String),
WebSocket(String),
ProxyAuthFailed(String),
InvalidPairingCode(String),
NoiseProtocol(String),
HandshakeFailed(String),
Timeout(String),
SecureChannelNotEstablished,
NotInitialized,
CredentialRequestFailed(String),
Serialization(String),
SessionCache(String),
KeypairStorage(String),
ChannelClosed,
IdentityStorageFailed(String),
RendezvousResolutionFailed(String),
InvalidRendezvousCode(String),
FingerprintRejected,
InvalidState {
expected: String,
current: String,
},
SessionNotFound,
}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
SessionCache(String)
Session 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
SessionNotFound
Session not found for fingerprint
Trait Implementations§
Source§impl Debug for RemoteClientError
impl Debug for RemoteClientError
Source§impl Display for RemoteClientError
impl Display for RemoteClientError
Source§impl Error for RemoteClientError
impl Error for RemoteClientError
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 RemoteClientError
impl FlatError for RemoteClientError
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 RemoteClientError
impl From<Error> for RemoteClientError
Source§impl From<NoiseProtocolError> for RemoteClientError
impl From<NoiseProtocolError> for RemoteClientError
Source§fn from(err: NoiseProtocolError) -> Self
fn from(err: NoiseProtocolError) -> Self
Converts to this type from the input type.
Source§impl From<ProxyError> for RemoteClientError
impl From<ProxyError> for RemoteClientError
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 RemoteClientError
impl RefUnwindSafe for RemoteClientError
impl Send for RemoteClientError
impl Sync for RemoteClientError
impl Unpin for RemoteClientError
impl UnsafeUnpin for RemoteClientError
impl UnwindSafe for RemoteClientError
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