pub enum BatchPublishErrorKind {
Request,
Publish,
Serialization,
BatchFull,
MaxMessagesExceeded,
EmptyBatch,
BatchPublishNotEnabled,
BatchPublishIncomplete,
BatchPublishUnsupportedHeader,
Other,
}Expand description
Kinds of errors that can occur during batch publish operations
Variants§
Request
Failed to send request to the server
Publish
Failed to publish message
Serialization
Failed to serialize or deserialize data
BatchFull
Batch is in an invalid state for the operation
MaxMessagesExceeded
Exceeded maximum allowed messages in batch (server limit: 1000)
EmptyBatch
Empty batch cannot be committed
BatchPublishNotEnabled
Batch publishing is not enabled on the stream (allow_atomic_publish must be true)
BatchPublishIncomplete
Batch publish is incomplete and was abandoned
BatchPublishUnsupportedHeader
Batch uses unsupported headers (Nats-Msg-Id or Nats-Expected-Last-Msg-Id)
Other
Other unspecified error
Trait Implementations§
Source§impl Clone for BatchPublishErrorKind
impl Clone for BatchPublishErrorKind
Source§fn clone(&self) -> BatchPublishErrorKind
fn clone(&self) -> BatchPublishErrorKind
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 BatchPublishErrorKind
impl Debug for BatchPublishErrorKind
Source§impl Display for BatchPublishErrorKind
impl Display for BatchPublishErrorKind
Source§impl PartialEq for BatchPublishErrorKind
impl PartialEq for BatchPublishErrorKind
impl Copy for BatchPublishErrorKind
impl StructuralPartialEq for BatchPublishErrorKind
Auto Trait Implementations§
impl Freeze for BatchPublishErrorKind
impl RefUnwindSafe for BatchPublishErrorKind
impl Send for BatchPublishErrorKind
impl Sync for BatchPublishErrorKind
impl Unpin for BatchPublishErrorKind
impl UnwindSafe for BatchPublishErrorKind
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