pub enum EventStreamError<E> {
Utf8(FromUtf8Error),
Parser(NomError<String>),
Transport(E),
}
Expand description
Error thrown while parsing an event line
Variants
Utf8(FromUtf8Error)
Source stream is not valid UTF8
Parser(NomError<String>)
Source stream is not a valid EventStream
Transport(E)
Underlying source stream error
Trait Implementations
sourceimpl<E: Debug> Debug for EventStreamError<E>
impl<E: Debug> Debug for EventStreamError<E>
sourceimpl<E> Display for EventStreamError<E> where
E: Display,
impl<E> Display for EventStreamError<E> where
E: Display,
sourceimpl<E> Error for EventStreamError<E> where
E: Display + Debug + Send + Sync,
impl<E> Error for EventStreamError<E> where
E: Display + Debug + Send + Sync,
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎 Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl<E> From<Error<&'_ str>> for EventStreamError<E>
impl<E> From<Error<&'_ str>> for EventStreamError<E>
sourceimpl<E: PartialEq> PartialEq<EventStreamError<E>> for EventStreamError<E>
impl<E: PartialEq> PartialEq<EventStreamError<E>> for EventStreamError<E>
sourcefn eq(&self, other: &EventStreamError<E>) -> bool
fn eq(&self, other: &EventStreamError<E>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &EventStreamError<E>) -> bool
fn ne(&self, other: &EventStreamError<E>) -> bool
This method tests for !=
.
impl<E> StructuralPartialEq for EventStreamError<E>
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more