pub enum StreamError<D> {
Database(D),
Deserialize(String),
}Expand description
Error type for stream operations.
Variants§
Implementations§
Source§impl<D> StreamError<D>
impl<D> StreamError<D>
Sourcepub const fn is_database(&self) -> bool
pub const fn is_database(&self) -> bool
Check if this is a database error.
Sourcepub const fn is_deserialize(&self) -> bool
pub const fn is_deserialize(&self) -> bool
Check if this is a deserialization error.
Trait Implementations§
Source§impl<D> Debug for StreamError<D>where
D: Debug,
impl<D> Debug for StreamError<D>where
D: Debug,
Source§impl<D> Display for StreamError<D>where
D: Display,
impl<D> Display for StreamError<D>where
D: Display,
Source§impl<D> Error for StreamError<D>where
D: Error + 'static,
impl<D> Error for StreamError<D>where
D: Error + 'static,
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()
Auto Trait Implementations§
impl<D> Freeze for StreamError<D>where
D: Freeze,
impl<D> RefUnwindSafe for StreamError<D>where
D: RefUnwindSafe,
impl<D> Send for StreamError<D>where
D: Send,
impl<D> Sync for StreamError<D>where
D: Sync,
impl<D> Unpin for StreamError<D>where
D: Unpin,
impl<D> UnwindSafe for StreamError<D>where
D: 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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more