Expand description
Layer 3: Network — Peer discovery, addressing, encrypted tunnels.
This module defines the NetworkProvider trait, the public API for Layer 3.
The trait is generic — no Tailscale-specific types leak through.
The tailscale submodule contains the TailscaleProvider implementation
that wraps the Go sidecar (tsnet) and bridge.
Modules§
- tailscale
- Tailscale network provider implementation.
Structs§
- Dial
Opts - Options for
NetworkProvider::dial_tcp_opts. - Health
Info - Health information from the network provider.
- Incoming
Connection - An incoming TCP connection with metadata.
- Listen
Opts - Options for
NetworkProvider::listen_tcp_opts. - Network
Peer - A peer as seen by the network layer (Layer 3).
- Network
TcpListener - A listener for incoming TCP connections via the network provider.
- Network
UdpSocket - A UDP socket that relays datagrams through the network provider.
- Node
Identity - Identity of the local node on the network.
- Peer
Addr - Network address of a peer.
- Ping
Result - Result of a network-level ping.
- Proxy
AddParams - Parameters for starting a reverse proxy via the network provider.
- Proxy
AddResult - Result of successfully starting a reverse proxy.
- Proxy
List Entry - Entry in the proxy list from the network provider.
- Proxy
Route - One path-prefix route of a v2 proxy (RFC 023 §7). Wire-shaped: exactly
one of
target_url/dirmust be set. Longest prefix wins (D11). - Proxy
Runtime Error - A runtime error from the provider’s proxy engine after a successful add
(RFC 023 G5 fix — e.g. sidecar
SERVE_ERROR/CONNECTION_REFUSED). - Tailscale
Peer Identity - A remote peer’s Tailscale-authenticated identity, parsed from the WhoIs
JSON the sidecar attaches to inbound bridge connections (the
remote_identityfield ofIncomingConnection).
Enums§
- Network
Error - Errors from Layer 3 network operations.
- Network
Peer Event - Events emitted when network peers change state.
Traits§
- Network
Provider - Provides network-level peer discovery and raw connectivity.