Skip to main content

Crate tunnel_lattice_model

Crate tunnel_lattice_model 

Source
Expand description

Operating-system-independent TUN/TAP domain types for Tunnel Lattice.

This crate models data and contracts; it never inspects or mutates the host system — mirrors net-lattice-model’s separation in the sibling Lattice ecosystem. See ARCHITECTURE.md for the full rationale.

Structs§

Device
An observed, already-open TUN/TAP device.
DeviceConfig
Desired intent for creating a new TUN/TAP device.
DeviceConfigPatch
A patch requesting a change to an already-open Device’s MTU, MAC address, or administrative state.
MacAddress
A MAC (Ethernet hardware) address.

Enums§

AdminState
The administrative state of a device, as observed from the backend.
DesiredAdminState
The administrative state requested for a DeviceConfigPatch.
DeviceKind
Whether a device presents Ethernet-framed (TAP) or raw IP (TUN) packets.

Type Aliases§

DeviceId
Identifies a Device.