pub enum TransportError {
Show 16 variants
NotImplemented(String),
ConnectFailed(String),
ListenFailed(String),
HandshakeFailed(String),
VersionMismatch {
local: u32,
remote: u32,
},
HelloTimeout,
HelloMalformed(String),
AppMismatch {
local: String,
remote: String,
},
IdentityMismatch {
claimed: String,
authenticated: String,
},
ConnectionClosed(String),
Timeout(String),
HeartbeatTimeout(Duration),
WebSocket(String),
Io(Error),
Serialize(String),
Network(NetworkError),
}Expand description
Errors from Layer 4 transport operations.
Variants§
NotImplemented(String)
The requested transport or feature is not implemented.
ConnectFailed(String)
Failed to connect to the peer.
ListenFailed(String)
Failed to start listening.
HandshakeFailed(String)
The transport-level handshake failed.
VersionMismatch
Protocol version mismatch between peers.
HelloTimeout
The remote peer did not produce a hello envelope within the timeout (RFC 017 §8).
HelloMalformed(String)
The remote peer sent a hello envelope that did not parse as a valid
HelloEnvelope, or used a version
we do not support (RFC 017 §8, close code 4002).
AppMismatch
The remote peer advertised a different app_id in its hello envelope
than we did (RFC 017 §8, close code 4001).
IdentityMismatch
The hello envelope’s claimed tailscale_id did not match the
Tailscale-authenticated identity of the connection (RFC 017 §8,
close code 4003).
Fields
ConnectionClosed(String)
The connection was closed unexpectedly.
Timeout(String)
A send or receive operation timed out.
HeartbeatTimeout(Duration)
Heartbeat (ping/pong) failure — the peer stopped responding.
WebSocket(String)
WebSocket protocol error.
Io(Error)
I/O error from the underlying stream.
Serialize(String)
Serialization/deserialization error (e.g., handshake JSON).
Network(NetworkError)
Error from Layer 3 (network).
Trait Implementations§
Source§impl Debug for TransportError
impl Debug for TransportError
Source§impl Display for TransportError
impl Display for TransportError
Source§impl Error for TransportError
impl Error for TransportError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()