pub enum CounterErrorKind {
Show 14 variants
CounterNotEnabled,
DirectAccessRequired,
InvalidCounterValue,
CounterNotFound,
NoCounterForSubject,
InvalidResponseValue,
MissingResponseValue,
InvalidSources,
Serialization,
Stream,
Publish,
GetStream,
Request,
Other,
}Expand description
Kinds of errors that can occur when working with NATS counters.
Variants§
CounterNotEnabled
Stream is not configured for counters (AllowMsgCounter must be true).
DirectAccessRequired
Stream must be configured for direct access (AllowDirect must be true).
InvalidCounterValue
Invalid counter value.
CounterNotFound
Counter stream not found.
NoCounterForSubject
Counter not initialized for the given subject.
InvalidResponseValue
Invalid counter value in response.
MissingResponseValue
Missing counter value in response.
InvalidSources
Failed to parse counter sources.
Serialization
JSON parsing error.
Stream
Stream operation error.
Publish
GetStream
Request
Other
Trait Implementations§
Source§impl Clone for CounterErrorKind
impl Clone for CounterErrorKind
Source§fn clone(&self) -> CounterErrorKind
fn clone(&self) -> CounterErrorKind
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 CounterErrorKind
impl Debug for CounterErrorKind
Source§impl Display for CounterErrorKind
impl Display for CounterErrorKind
Source§impl PartialEq for CounterErrorKind
impl PartialEq for CounterErrorKind
impl StructuralPartialEq for CounterErrorKind
Auto Trait Implementations§
impl Freeze for CounterErrorKind
impl RefUnwindSafe for CounterErrorKind
impl Send for CounterErrorKind
impl Sync for CounterErrorKind
impl Unpin for CounterErrorKind
impl UnwindSafe for CounterErrorKind
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