Enum sea_streamer::StreamErr
source · pub enum StreamErr<E>where
E: Error,{
Show 15 variants
Connect(String),
TimeoutNotSet,
AlreadyAnchored,
NotAnchored,
ConsumerGroupIsSet,
ConsumerGroupNotSet,
StreamKeyEmpty,
StreamKeyNotFound,
CommitNotAllowed,
Utf8Error(Utf8Error),
StreamUrlErr(StreamUrlErr),
StreamKeyErr(StreamKeyErr),
Unsupported(String),
Backend(E),
Runtime(Box<dyn Error + Send + Sync>),
}
Expand description
Common errors that may occur.
Variants§
Connect(String)
TimeoutNotSet
AlreadyAnchored
NotAnchored
ConsumerGroupIsSet
ConsumerGroupNotSet
StreamKeyEmpty
StreamKeyNotFound
CommitNotAllowed
Utf8Error(Utf8Error)
StreamUrlErr(StreamUrlErr)
StreamKeyErr(StreamKeyErr)
Unsupported(String)
Backend(E)
Runtime(Box<dyn Error + Send + Sync>)
Trait Implementations§
source§impl<E> Error for StreamErr<E>
impl<E> Error for StreamErr<E>
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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> Freeze for StreamErr<E>where
E: Freeze,
impl<E> !RefUnwindSafe for StreamErr<E>
impl<E> Send for StreamErr<E>where
E: Send,
impl<E> Sync for StreamErr<E>where
E: Sync,
impl<E> Unpin for StreamErr<E>where
E: Unpin,
impl<E> !UnwindSafe for StreamErr<E>
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