#[non_exhaustive]pub enum StreamConsumerError {
ActiveConsumer {
stream_name: &'static str,
},
}Expand description
Errors that can occur when creating a stream consumer.
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.
ActiveConsumer
A single-subscriber stream already has an active consumer.
Implementations§
Source§impl StreamConsumerError
impl StreamConsumerError
Sourcepub fn stream_name(&self) -> &'static str
pub fn stream_name(&self) -> &'static str
The name of the stream that rejected the consumer.
Trait Implementations§
Source§impl Clone for StreamConsumerError
impl Clone for StreamConsumerError
Source§fn clone(&self) -> StreamConsumerError
fn clone(&self) -> StreamConsumerError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreamConsumerError
impl Debug for StreamConsumerError
Source§impl Display for StreamConsumerError
impl Display for StreamConsumerError
Source§impl Error for StreamConsumerError
impl Error for StreamConsumerError
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 StreamConsumerError
impl PartialEq for StreamConsumerError
impl Copy for StreamConsumerError
impl Eq for StreamConsumerError
impl StructuralPartialEq for StreamConsumerError
Auto Trait Implementations§
impl Freeze for StreamConsumerError
impl RefUnwindSafe for StreamConsumerError
impl Send for StreamConsumerError
impl Sync for StreamConsumerError
impl Unpin for StreamConsumerError
impl UnsafeUnpin for StreamConsumerError
impl UnwindSafe for StreamConsumerError
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