pub enum ProjectionError<E> {
EmptyInput,
Reducer(E),
}Expand description
Errors returned by projection helpers.
Variants§
EmptyInput
The reducer was asked to fold an empty stream.
Reducer(E)
The reducer rejected one of the events in the stream.
Trait Implementations§
Source§impl<E: Debug> Debug for ProjectionError<E>
impl<E: Debug> Debug for ProjectionError<E>
Source§impl<E> Display for ProjectionError<E>where
E: Display,
impl<E> Display for ProjectionError<E>where
E: Display,
Source§impl<E> Error for ProjectionError<E>where
E: Error + 'static,
impl<E> Error for ProjectionError<E>where
E: Error + 'static,
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 ProjectionError<E>
impl<E: PartialEq> PartialEq for ProjectionError<E>
impl<E: Eq> Eq for ProjectionError<E>
impl<E> StructuralPartialEq for ProjectionError<E>
Auto Trait Implementations§
impl<E> Freeze for ProjectionError<E>where
E: Freeze,
impl<E> RefUnwindSafe for ProjectionError<E>where
E: RefUnwindSafe,
impl<E> Send for ProjectionError<E>where
E: Send,
impl<E> Sync for ProjectionError<E>where
E: Sync,
impl<E> Unpin for ProjectionError<E>where
E: Unpin,
impl<E> UnsafeUnpin for ProjectionError<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for ProjectionError<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