dns_types::zones::deserialise

Function tokenise_entry

Source
fn tokenise_entry<I: Iterator<Item = char>>(
    stream: &mut Peekable<I>,
) -> Result<Vec<(String, Bytes)>, Error>
Expand description

Split an entry into tokens: split on whitespace, taking quoting into account, and if there are parentheses or quotes continue to the matched delimiter.

ยงErrors

If the string cannot be parsed.