pub enum HangingGetServerError {
MultipleObservers,
NoBroker,
RateLimit,
Generic(Error),
}
Expand description
Error types that may be used by the async hanging-get server.
Variants§
MultipleObservers
An existing observer was already present for the client.
NoBroker
The HangingGetBroker associated with this handle has been dropped.
RateLimit
This handle is sending messages faster than the broker can process them.
Generic(Error)
Generic hanging-get server error.
Trait Implementations§
Source§impl Debug for HangingGetServerError
impl Debug for HangingGetServerError
Source§impl Display for HangingGetServerError
impl Display for HangingGetServerError
Source§impl Error for HangingGetServerError
impl Error for HangingGetServerError
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()
Source§impl From<Canceled> for HangingGetServerError
impl From<Canceled> for HangingGetServerError
Source§impl From<Error> for HangingGetServerError
impl From<Error> for HangingGetServerError
Source§impl From<SendError> for HangingGetServerError
impl From<SendError> for HangingGetServerError
Source§impl PartialEq for HangingGetServerError
impl PartialEq for HangingGetServerError
Auto Trait Implementations§
impl Freeze for HangingGetServerError
impl RefUnwindSafe for HangingGetServerError
impl Send for HangingGetServerError
impl Sync for HangingGetServerError
impl Unpin for HangingGetServerError
impl UnwindSafe for HangingGetServerError
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