#[non_exhaustive]pub enum StreamError {
EmptyItemId,
EmptyToolName,
DuplicateItemId(String),
InvalidLifecycle(String),
FinalPayloadMismatch(String),
UnfinishedItems,
EventAfterDone,
MissingTerminal,
}Expand description
A stable normalized-stream grammar violation.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
EmptyItemId
An item identity was empty.
EmptyToolName
A tool name was empty.
DuplicateItemId(String)
An identity was reopened or reused after completion.
InvalidLifecycle(String)
An event did not match the identity’s active lifecycle.
FinalPayloadMismatch(String)
A final payload differed from accumulated deltas.
UnfinishedItems
Terminal arrived while one or more items remained open.
EventAfterDone
An event was observed after terminal.
MissingTerminal
End-of-stream occurred without terminal.
Trait Implementations§
Source§impl Clone for StreamError
impl Clone for StreamError
Source§impl Debug for StreamError
impl Debug for StreamError
Source§impl Display for StreamError
impl Display for StreamError
impl Eq for StreamError
Source§impl Error for StreamError
impl Error for StreamError
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 PartialEq for StreamError
impl PartialEq for StreamError
impl StructuralPartialEq for StreamError
Auto Trait Implementations§
impl Freeze for StreamError
impl RefUnwindSafe for StreamError
impl Send for StreamError
impl Sync for StreamError
impl Unpin for StreamError
impl UnsafeUnpin for StreamError
impl UnwindSafe for StreamError
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