[][src]Enum reqwest_eventsource::ParseError

pub enum ParseError {
    InvalidField(Vec<u8>),
    InvalidEvent(Vec<u8>),
    InvalidRetry(Vec<u8>),
    UnexpectedEndOfLine(Vec<u8>),
    EmptyField,
}

Error thrown while parsing an event line

Variants

InvalidField(Vec<u8>)

Field name parsing error. Field must be one of event, data, id or retry. Contains buffer of attempted parsed bytes

InvalidEvent(Vec<u8>)

Utf8 Event::event field parsing error. Contains buffer of attempted parsed bytes

InvalidRetry(Vec<u8>)

Utf8 number Event::retry field parsing error. Contains buffer of attempted parsed bytes

UnexpectedEndOfLine(Vec<u8>)

Came to end of line without reading field. Contains buffer of attempted parsed bytes

EmptyField

No field found on line

Trait Implementations

impl Debug for ParseError[src]

impl Display for ParseError[src]

impl Fail for ParseError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> AsFail for T where
    T: Fail, 

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.