pub enum SerializableMessage {
QueryBinary(OneOffQueryResponseMessage<BsatnFormat>),
QueryText(OneOffQueryResponseMessage<JsonFormat>),
Identity(IdentityTokenMessage),
Subscribe(SubscriptionUpdateMessage),
Subscription(SubscriptionMessage),
TxUpdate(TransactionUpdateMessage),
}Variants§
QueryBinary(OneOffQueryResponseMessage<BsatnFormat>)
QueryText(OneOffQueryResponseMessage<JsonFormat>)
Identity(IdentityTokenMessage)
Subscribe(SubscriptionUpdateMessage)
Subscription(SubscriptionMessage)
TxUpdate(TransactionUpdateMessage)
Implementations§
Trait Implementations§
Source§impl Debug for SerializableMessage
impl Debug for SerializableMessage
Source§impl From<IdentityToken> for SerializableMessage
impl From<IdentityToken> for SerializableMessage
Source§fn from(original: IdentityTokenMessage) -> SerializableMessage
fn from(original: IdentityTokenMessage) -> SerializableMessage
Converts to this type from the input type.
Source§impl From<OneOffQueryResponseMessage<BsatnFormat>> for SerializableMessage
impl From<OneOffQueryResponseMessage<BsatnFormat>> for SerializableMessage
Source§fn from(
original: OneOffQueryResponseMessage<BsatnFormat>,
) -> SerializableMessage
fn from( original: OneOffQueryResponseMessage<BsatnFormat>, ) -> SerializableMessage
Converts to this type from the input type.
Source§impl From<OneOffQueryResponseMessage<JsonFormat>> for SerializableMessage
impl From<OneOffQueryResponseMessage<JsonFormat>> for SerializableMessage
Source§fn from(original: OneOffQueryResponseMessage<JsonFormat>) -> SerializableMessage
fn from(original: OneOffQueryResponseMessage<JsonFormat>) -> SerializableMessage
Converts to this type from the input type.
Source§impl From<SubscriptionMessage> for SerializableMessage
impl From<SubscriptionMessage> for SerializableMessage
Source§fn from(original: SubscriptionMessage) -> SerializableMessage
fn from(original: SubscriptionMessage) -> SerializableMessage
Converts to this type from the input type.
Source§impl From<SubscriptionUpdateMessage> for SerializableMessage
impl From<SubscriptionUpdateMessage> for SerializableMessage
Source§fn from(original: SubscriptionUpdateMessage) -> SerializableMessage
fn from(original: SubscriptionUpdateMessage) -> SerializableMessage
Converts to this type from the input type.
Source§impl From<TransactionUpdateMessage> for SerializableMessage
impl From<TransactionUpdateMessage> for SerializableMessage
Source§fn from(original: TransactionUpdateMessage) -> SerializableMessage
fn from(original: TransactionUpdateMessage) -> SerializableMessage
Converts to this type from the input type.
Source§impl ToProtocol for SerializableMessage
impl ToProtocol for SerializableMessage
type Encoded = FormatSwitch<ServerMessage<BsatnFormat>, ServerMessage<JsonFormat>>
Source§fn to_protocol(self, protocol: Protocol) -> Self::Encoded
fn to_protocol(self, protocol: Protocol) -> Self::Encoded
Auto Trait Implementations§
impl !Freeze for SerializableMessage
impl RefUnwindSafe for SerializableMessage
impl Send for SerializableMessage
impl Sync for SerializableMessage
impl Unpin for SerializableMessage
impl UnwindSafe for SerializableMessage
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> 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> 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