pub enum SendTimeoutError {
Timeout(SubscriptionMessage),
Closed(SubscriptionMessage),
}
Expand description
Error that may occur during crate::server::MethodSink::send_timeout
or crate::server::SubscriptionSink::send_timeout
.
Variants§
Timeout(SubscriptionMessage)
The data could not be sent because the timeout elapsed which most likely is that the channel is full.
Closed(SubscriptionMessage)
The connection channel is closed.
Trait Implementations§
source§impl Debug for SendTimeoutError
impl Debug for SendTimeoutError
source§impl Display for SendTimeoutError
impl Display for SendTimeoutError
source§impl Error for SendTimeoutError
impl Error for SendTimeoutError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<SendTimeoutError<String>> for SendTimeoutError
impl From<SendTimeoutError<String>> for SendTimeoutError
source§fn from(e: SendTimeoutError<String>) -> SendTimeoutError
fn from(e: SendTimeoutError<String>) -> SendTimeoutError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SendTimeoutError
impl RefUnwindSafe for SendTimeoutError
impl Send for SendTimeoutError
impl Sync for SendTimeoutError
impl Unpin for SendTimeoutError
impl UnwindSafe for SendTimeoutError
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