#[non_exhaustive]pub enum SubscriptionSendError {
SubscriptionClosed,
UnsupportedNotification(&'static str),
NotificationNotAccepted(&'static str),
Service(ServiceError),
}Available on crate feature
server and (crate features client or server) only.Expand description
Failure to send a notification through a SubscriptionSink.
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.
SubscriptionClosed
UnsupportedNotification(&'static str)
NotificationNotAccepted(&'static str)
Service(ServiceError)
Trait Implementations§
Source§impl Debug for SubscriptionSendError
impl Debug for SubscriptionSendError
Source§impl Display for SubscriptionSendError
impl Display for SubscriptionSendError
Source§impl Error for SubscriptionSendError
impl Error for SubscriptionSendError
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<ServiceError> for SubscriptionSendError
impl From<ServiceError> for SubscriptionSendError
Source§fn from(source: ServiceError) -> Self
fn from(source: ServiceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for SubscriptionSendError
impl !UnwindSafe for SubscriptionSendError
impl Freeze for SubscriptionSendError
impl Send for SubscriptionSendError
impl Sync for SubscriptionSendError
impl Unpin for SubscriptionSendError
impl UnsafeUnpin for SubscriptionSendError
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