Skip to main content

Module experimental

Module experimental 

Source
Expand description

Experimental features: messages a client and server use only when both said so in Hello.

A client names the features it wants in Hello::experimental; the server’s answer, ServerInfo::experimental, names those it turned on for the connection: the ones it knows and has on. Neither side assumes a feature the other did not name, and a name either does not know is ignored, never an error. An older server ignores the field, and its answer names none.

An experimental feature’s messages are outside the protocol’s stability: they may change or go away without PROTOCOL_VERSION moving, and protocol version 1 does not promise them. One graduates by becoming an ordinary message of a protocol version, and its name goes.

Enums§

HttpPlaybackRefusal
Why the server gives no HTTP URL for a playback (http-playback).

Constants§

FEDERATION
Server-to-server federation: the client protocol’s PairServer and a federation invite. The server’s own side, the spoolframe/federation/1 ALPN (crate::federation), is open only while its experimental.federation is on.
HTTP_PLAYBACK
A playback’s HLS over plain HTTP, from the server’s own port, for a player with no Iroh (AirPlay first): Request::HttpPlaybackUrl.
MAX_ASKED
The most feature names a server keeps of a Hello; the rest are dropped, as each name is cut to MAX_HELLO_TEXT characters.

Functions§

turned_on
The features of asked that are among on, each once, in asked’s order: what a server’s answer names. A name not among on is ignored.