Skip to main content

sanitize_peer_summary

Function sanitize_peer_summary 

Source
pub fn sanitize_peer_summary(
    value: &Value,
    max_name_chars: usize,
) -> Option<SeatSummary>
Expand description

A seat summary a LAN peer sent, made safe to show (§5): a known role only, each text on one line and within its limit (cut, not refused: the peer validated it, this only bounds it). None when it can’t be read.