Skip to main content

SessionAdmissionReply

Type Alias SessionAdmissionReply 

Source
pub type SessionAdmissionReply = Sender<Result<SessionAdmissionDecision, String>>;
Expand description

Where a SessionAdmissionRequest’s answer is delivered.

The error is a string rather than the session server’s own type because that type is chosen by whoever installs the server and is unnameable from here — the same erasure the session-server wiring already performs when it logs a processing failure. The message is for the Exit’s own operator; the peer is told only StartErrorReason::TargetNotAdmitted.

Aliased Type§

pub struct SessionAdmissionReply { /* private fields */ }