Skip to main content

parse_stream_token

Function parse_stream_token 

Source
pub fn parse_stream_token(raw: &str) -> Result<StreamToken, MatrixError>
Expand description

"t{stream_id}", a bare "0", or a sync token "s{stream_id}_{typing_gen}" — see the module doc. Anything else, and any negative stream id, is refused with M_INVALID_PARAM.