#[non_exhaustive]pub enum ExtensionSendError {
Full,
Closed,
NotAnExtensionMessage,
Serialize(Error),
}Available on crate feature
server only.Expand description
Why an ExtensionSender did not queue a message.
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.
Full
The queue is full (ExtensionSender::try_send only). The
message was dropped.
Closed
The connection has ended. The message was dropped.
NotAnExtensionMessage
The message is not a JSON object with a string @type, or its
@type is one RFC 8887 §4.3 defines (Response, RequestError,
StateChange, and the client-to-server types).
Serialize(Error)
The message did not serialize.
Trait Implementations§
Source§impl Debug for ExtensionSendError
impl Debug for ExtensionSendError
Source§impl Display for ExtensionSendError
impl Display for ExtensionSendError
Source§impl Error for ExtensionSendError
impl Error for ExtensionSendError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for ExtensionSendError
impl !UnwindSafe for ExtensionSendError
impl Forget for ExtensionSendError
impl Freeze for ExtensionSendError
impl Move for ExtensionSendError
impl Send for ExtensionSendError
impl Sync for ExtensionSendError
impl Unpin for ExtensionSendError
impl UnsafeUnpin for ExtensionSendError
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
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.