#[non_exhaustive]pub enum PublishError {
Connect(RecoveryError),
Status(u32),
SequenceGap {
expected: u32,
actual: u32,
},
Session(ReadError),
Subscription(SubscriptionError),
InvalidSelection,
InvalidNotification,
ServerOverflow,
}Expand description
Dedicated Publish stream setup, delivery and retransmission failures.
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.
Connect(RecoveryError)
Failed to establish a dedicated pinned session.
Status(u32)
The server rejected the monitored item, event field, acknowledgement or subscription.
SequenceGap
A skipped message was unavailable, exceeded the recovery window, or the sequence was repeated.
Session(ReadError)
Channel, namespace or service failure.
Subscription(SubscriptionError)
Invalid interval/revision, wait timeout or loss of delivery.
InvalidSelection
Invalid local selection.
InvalidNotification
The response has invalid shape, routing, or encoded size.
ServerOverflow
The server reported lost events.
Trait Implementations§
Source§impl Debug for PublishError
impl Debug for PublishError
Source§impl Display for PublishError
impl Display for PublishError
Source§impl Error for PublishError
impl Error for PublishError
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 From<ReadError> for PublishError
impl From<ReadError> for PublishError
Source§impl From<RecoveryError> for PublishError
impl From<RecoveryError> for PublishError
Source§fn from(source: RecoveryError) -> Self
fn from(source: RecoveryError) -> Self
Converts to this type from the input type.
Source§impl From<SubscriptionError> for PublishError
impl From<SubscriptionError> for PublishError
Source§fn from(source: SubscriptionError) -> Self
fn from(source: SubscriptionError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for PublishError
impl !UnwindSafe for PublishError
impl Forget for PublishError
impl Freeze for PublishError
impl Move for PublishError
impl Send for PublishError
impl Sync for PublishError
impl Unpin for PublishError
impl UnsafeUnpin for PublishError
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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