Skip to main content

explain_close

Function explain_close 

Source
pub fn explain_close(code: u16, guest_port: u16) -> Option<String>
Expand description

A sentence for a close code, or None when the code explains nothing.

Delegates to protocol::tunnel::close::explanation for the codes the daemon originates, and adds the one the platform produces — 1006, which every proxy-side failure collapses to. That case needs its own wording precisely because it is ambiguous: naming a single cause would be a guess presented as a diagnosis.