Skip to main content

Module settings_remote

Module settings_remote 

Source
Expand description

The remote tunnel’s settings (ADR 0012): the connect side’s stored pairing as one value, and the remote half of merging and validating.

Split out via #[path], the way settings_validate.rs is, and for the same reason: settings.rs sits exactly on its ratchet baseline, so a type that carries its own doc comment cannot live in it — and neither can the arms that grow with it. merge and validate_settings each call into here once, so a remote field added later touches settings.rs by one line for its declaration and nothing else.

Structs§

Device
One device this machine has issued a key to.
RemotePairing
The machine gglib remote join paired with, and the key that machine issued — one record, because they are one fact.
RemoteServe
How this machine was told to put its proxy on the tunnel, kept so a restart arms it the same way.

Functions§

default_true 🔒
serde(default) for a field whose absence means yes.
valid_device_id 🔒
modelpipe’s rule for a token name, applied before a row is written rather than when the listener refuses it: ASCII letters, digits, ., _ and -, one to sixty-four bytes.
validate_remote 🔒
The remote half of validate_settings.