Skip to main content

Module session

Module session 

Source
Expand description

The admitted Lys pass as a connection holds it.

An object-safe session over any LysDeliberateConsumer, so the connection code names no consumer type and the real lys-pass adapter plugs in behind one seam.

Admission runs once at Connect; every hot message is then decided through LysSession::decide from the admitted pass’s rights, offline, with no call to Lys on the message path (ACCESS-001 R2). A link crossing is decided the same way through LysSession::decide_link; opening a link is deliberate and asks Lys live through LysSession::open_link (ACCESS-002 R1).

Structs§

ConsumerAdmitter
Wraps a LysDeliberateConsumer as a LysAdmitter.
LysAdmissionRefusal
Why a Lys pass was not admitted at Connect, as the wire names it.

Traits§

LysAdmitter
Admits Lys pass bytes into a session the connection keeps.
LysSession
An admitted pass deciding hot actions for one connection.