Skip to main content

Module network

Module network 

Source
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§

HealthInfo
Health information from the network provider.
IncomingConnection
An incoming TCP connection with metadata.
NetworkPeer
A peer as seen by the network layer (Layer 3).
NetworkTcpListener
A listener for incoming TCP connections via the network provider.
NetworkUdpSocket
A UDP socket that relays datagrams through the network provider.
NodeIdentity
Identity of the local node on the network.
PeerAddr
Network address of a peer.
PingResult
Result of a network-level ping.

Enums§

NetworkError
Errors from Layer 3 network operations.
NetworkPeerEvent
Events emitted when network peers change state.

Traits§

NetworkProvider
Provides network-level peer discovery and raw connectivity.