pub enum PubSubError<K, P, Route> {
UnknownTopic {
topic: K,
subscriber: Route,
},
NotSubscribed {
topic: K,
subscriber: Route,
},
NoSubscribers {
topic: K,
value: P,
},
}Expand description
Typed keyed-publication rejection.
Variants§
UnknownTopic
Unsubscription named an unknown topic.
NotSubscribed
Recipient is not subscribed to the named topic.
NoSubscribers
Publication had no recipients; ownership is returned.
Trait Implementations§
Source§impl<K, P, Route> Display for PubSubError<K, P, Route>
impl<K, P, Route> Display for PubSubError<K, P, Route>
Source§impl<K, P, Route> Error for PubSubError<K, P, Route>
impl<K, P, Route> Error for PubSubError<K, P, Route>
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()
impl<K: Eq, P: Eq, Route: Eq> Eq for PubSubError<K, P, Route>
impl<K, P, Route> StructuralPartialEq for PubSubError<K, P, Route>
Auto Trait Implementations§
impl<K, P, Route> Freeze for PubSubError<K, P, Route>
impl<K, P, Route> RefUnwindSafe for PubSubError<K, P, Route>
impl<K, P, Route> Send for PubSubError<K, P, Route>
impl<K, P, Route> Sync for PubSubError<K, P, Route>
impl<K, P, Route> Unpin for PubSubError<K, P, Route>
impl<K, P, Route> UnsafeUnpin for PubSubError<K, P, Route>
impl<K, P, Route> UnwindSafe for PubSubError<K, P, Route>
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