Skip to main content

detect_inbound

Function detect_inbound 

Source
pub fn detect_inbound(text: &str) -> Option<PeerInboundKind>
Expand description

Detect a peer wrapper at the start of a user-message text. Returns None for any text that isn’t a bracket-prefixed peer wrapper (the chat renderer falls through to the default text rendering in that case).