parse_inbound

Function parse_inbound 

Source
pub fn parse_inbound(text: &str) -> Result<Inbound, TwilioError>
Expand description

Parse one Twilio Media Streams text frame.

Unknown event types parse to Inbound::Ignored so a new Twilio event never breaks an existing bridge; malformed JSON is an error.