pub enum StreamExecutionError<S, D> {
EmptyScratch,
InvalidSourceLength,
Progress(StreamProgressError),
Source(S),
Sink(D),
}Expand description
One bounded stream execution failure.
Variants§
EmptyScratch
Caller scratch storage is empty.
InvalidSourceLength
The source claimed more initialized bytes than the supplied prefix.
Progress(StreamProgressError)
SDK-owned accounting or lifecycle validation failed.
Source(S)
The source failed.
Sink(D)
The sink failed while writing or committing.
Trait Implementations§
Source§impl<S: Clone, D: Clone> Clone for StreamExecutionError<S, D>
impl<S: Clone, D: Clone> Clone for StreamExecutionError<S, D>
Source§fn clone(&self) -> StreamExecutionError<S, D>
fn clone(&self) -> StreamExecutionError<S, D>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<S: Copy, D: Copy> Copy for StreamExecutionError<S, D>
Source§impl<S, D> Debug for StreamExecutionError<S, D>
impl<S, D> Debug for StreamExecutionError<S, D>
Source§impl<S, D> Display for StreamExecutionError<S, D>
impl<S, D> Display for StreamExecutionError<S, D>
impl<S: Eq, D: Eq> Eq for StreamExecutionError<S, D>
Source§impl<S, D> Error for StreamExecutionError<S, D>
impl<S, D> Error for StreamExecutionError<S, D>
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()
impl<S: PartialEq, D: PartialEq> StructuralPartialEq for StreamExecutionError<S, D>
Auto Trait Implementations§
impl<S, D> Freeze for StreamExecutionError<S, D>
impl<S, D> RefUnwindSafe for StreamExecutionError<S, D>where
S: RefUnwindSafe,
D: RefUnwindSafe,
impl<S, D> Send for StreamExecutionError<S, D>
impl<S, D> Sync for StreamExecutionError<S, D>
impl<S, D> Unpin for StreamExecutionError<S, D>
impl<S, D> UnsafeUnpin for StreamExecutionError<S, D>where
S: UnsafeUnpin,
D: UnsafeUnpin,
impl<S, D> UnwindSafe for StreamExecutionError<S, D>where
S: UnwindSafe,
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