pub enum WebsocketError {
ExtractorNotFound(ExtractorIdentity),
SubscriptionNotFound(Uuid),
ParseError(String, String),
SubscribeError(ExtractorIdentity),
}Expand description
A easy serializable version of models::error::WebsocketError
This serves purely to transfer errors via websocket. It is meant to render similarly to the original struct but does not have server side debug information attached.
It should contain information needed to handle errors correctly on the client side.
Variants§
ExtractorNotFound(ExtractorIdentity)
SubscriptionNotFound(Uuid)
ParseError(String, String)
SubscribeError(ExtractorIdentity)
Trait Implementations§
Source§impl Clone for WebsocketError
impl Clone for WebsocketError
Source§fn clone(&self) -> WebsocketError
fn clone(&self) -> WebsocketError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WebsocketError
impl Debug for WebsocketError
Source§impl<'de> Deserialize<'de> for WebsocketError
impl<'de> Deserialize<'de> for WebsocketError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for WebsocketError
impl Display for WebsocketError
Source§impl Error for WebsocketError
impl Error for WebsocketError
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<WebsocketError> for WebsocketError
impl From<WebsocketError> for WebsocketError
Source§fn from(value: WebsocketError) -> Self
fn from(value: WebsocketError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for WebsocketError
impl PartialEq for WebsocketError
Source§impl Serialize for WebsocketError
impl Serialize for WebsocketError
impl Eq for WebsocketError
impl StructuralPartialEq for WebsocketError
Auto Trait Implementations§
impl Freeze for WebsocketError
impl RefUnwindSafe for WebsocketError
impl Send for WebsocketError
impl Sync for WebsocketError
impl Unpin for WebsocketError
impl UnwindSafe for WebsocketError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.