pub enum StreamError<E: Error, K: Key> {
Internal(Error<K>),
Caller(E),
}Expand description
Wraps both indexkv errors and generic errors that could end up in the stream passed to Store::write
Variants§
Trait Implementations§
Source§impl<E: Error + 'static, K: Key + 'static> Error for StreamError<E, K>
impl<E: Error + 'static, K: Key + 'static> Error for StreamError<E, K>
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<E, K> Freeze for StreamError<E, K>
impl<E, K> !RefUnwindSafe for StreamError<E, K>
impl<E, K> Send for StreamError<E, K>where
E: Send,
impl<E, K> Sync for StreamError<E, K>where
E: Sync,
impl<E, K> Unpin for StreamError<E, K>
impl<E, K> !UnwindSafe for StreamError<E, K>
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