pub enum StreamingError {
Connection(String),
Serialization(String),
TopicNotFound(String),
Retryable(String),
Fatal(String),
Backend(String),
}Expand description
Errors that can occur in the streaming layer.
Variants§
Connection(String)
The client could not connect to a streaming backend.
Serialization(String)
A payload could not be serialized or deserialized.
TopicNotFound(String)
The requested topic is not known to the backend.
Retryable(String)
The operation failed with a condition that may succeed on retry.
Fatal(String)
The operation failed with a non-retryable backend condition.
Backend(String)
Backend-specific error that does not fit a narrower category.
Trait Implementations§
Source§impl Debug for StreamingError
impl Debug for StreamingError
Source§impl Display for StreamingError
impl Display for StreamingError
Source§impl Error for StreamingError
impl Error for StreamingError
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()
Auto Trait Implementations§
impl Freeze for StreamingError
impl RefUnwindSafe for StreamingError
impl Send for StreamingError
impl Sync for StreamingError
impl Unpin for StreamingError
impl UnsafeUnpin for StreamingError
impl UnwindSafe for StreamingError
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