pub enum WsResponse {
Error(ErrorResponse),
Subscribed(SubscribedResponse),
SubscribedWithInvalidFeedIdsIgnored(SubscribedWithInvalidFeedIdsIgnoredResponse),
Unsubscribed(UnsubscribedResponse),
SubscriptionError(SubscriptionErrorResponse),
StreamUpdated(StreamUpdatedResponse),
}
Expand description
A JSON response sent from the server to the client.
Variants§
Error(ErrorResponse)
Subscribed(SubscribedResponse)
SubscribedWithInvalidFeedIdsIgnored(SubscribedWithInvalidFeedIdsIgnoredResponse)
Unsubscribed(UnsubscribedResponse)
SubscriptionError(SubscriptionErrorResponse)
StreamUpdated(StreamUpdatedResponse)
Trait Implementations§
Source§impl Clone for WsResponse
impl Clone for WsResponse
Source§fn clone(&self) -> WsResponse
fn clone(&self) -> WsResponse
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 WsResponse
impl Debug for WsResponse
Source§impl<'de> Deserialize<'de> for WsResponse
impl<'de> Deserialize<'de> for WsResponse
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 From<ErrorResponse> for WsResponse
impl From<ErrorResponse> for WsResponse
Source§fn from(value: ErrorResponse) -> Self
fn from(value: ErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<StreamUpdatedResponse> for WsResponse
impl From<StreamUpdatedResponse> for WsResponse
Source§fn from(value: StreamUpdatedResponse) -> Self
fn from(value: StreamUpdatedResponse) -> Self
Converts to this type from the input type.
Source§impl From<SubscribedResponse> for WsResponse
impl From<SubscribedResponse> for WsResponse
Source§fn from(value: SubscribedResponse) -> Self
fn from(value: SubscribedResponse) -> Self
Converts to this type from the input type.
Source§impl From<SubscribedWithInvalidFeedIdsIgnoredResponse> for WsResponse
impl From<SubscribedWithInvalidFeedIdsIgnoredResponse> for WsResponse
Source§fn from(value: SubscribedWithInvalidFeedIdsIgnoredResponse) -> Self
fn from(value: SubscribedWithInvalidFeedIdsIgnoredResponse) -> Self
Converts to this type from the input type.
Source§impl From<SubscriptionErrorResponse> for WsResponse
impl From<SubscriptionErrorResponse> for WsResponse
Source§fn from(value: SubscriptionErrorResponse) -> Self
fn from(value: SubscriptionErrorResponse) -> Self
Converts to this type from the input type.
Source§impl From<UnsubscribedResponse> for WsResponse
impl From<UnsubscribedResponse> for WsResponse
Source§fn from(value: UnsubscribedResponse) -> Self
fn from(value: UnsubscribedResponse) -> Self
Converts to this type from the input type.
Source§impl Hash for WsResponse
impl Hash for WsResponse
Source§impl PartialEq for WsResponse
impl PartialEq for WsResponse
Source§impl Serialize for WsResponse
impl Serialize for WsResponse
impl Eq for WsResponse
impl StructuralPartialEq for WsResponse
Auto Trait Implementations§
impl Freeze for WsResponse
impl RefUnwindSafe for WsResponse
impl Send for WsResponse
impl Sync for WsResponse
impl Unpin for WsResponse
impl UnwindSafe for WsResponse
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more