youtube_dl_parser/state/parsed_state/
error_state.rs

1/// Occurs when an error is detected
2pub enum ErrorState {
3    Error(String),
4}
5
6impl ErrorState {
7    pub fn parse<'a>(split: impl DoubleEndedIterator<Item = &'a str> + Send) -> ErrorState {
8        let remaining = split.collect::<Vec<&str>>().join(" ");
9        ErrorState::Error(remaining)
10    }
11}