pub enum EventStreamError<E> {
Utf8(FromUtf8Error),
Parser(Error<String>),
Transport(E),
}
Expand description
Error thrown while parsing an event line
Variants§
Utf8(FromUtf8Error)
Source stream is not valid UTF8
Parser(Error<String>)
Source stream is not a valid EventStream
Transport(E)
Underlying source stream error
Trait Implementations§
Source§impl<E: Debug> Debug for EventStreamError<E>
impl<E: Debug> Debug for EventStreamError<E>
Source§impl<E> Display for EventStreamError<E>where
E: Display,
impl<E> Display for EventStreamError<E>where
E: Display,
Source§impl<E> Error for EventStreamError<E>
impl<E> Error for EventStreamError<E>
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl<E: PartialEq> PartialEq for EventStreamError<E>
impl<E: PartialEq> PartialEq for EventStreamError<E>
impl<E> StructuralPartialEq for EventStreamError<E>
Auto Trait Implementations§
impl<E> Freeze for EventStreamError<E>where
E: Freeze,
impl<E> RefUnwindSafe for EventStreamError<E>where
E: RefUnwindSafe,
impl<E> Send for EventStreamError<E>where
E: Send,
impl<E> Sync for EventStreamError<E>where
E: Sync,
impl<E> Unpin for EventStreamError<E>where
E: Unpin,
impl<E> UnwindSafe for EventStreamError<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more