pub enum MessageType {
Show 15 variants
ConnectionInit,
ConnectionAck,
Request,
Response,
Notification,
Subscribe,
Next,
Error,
Complete,
Unsubscribe,
Ping,
Pong,
ReceiptResponse,
Disconnect,
Status,
}Expand description
Message class values for the envelope type field.
Variants§
ConnectionInit
Client→server handshake.
ConnectionAck
Server→client handshake ack.
Request
RPC request.
Response
RPC success response.
Notification
Fire-and-forget notification.
Subscribe
Start a subscription.
Next
Stream event.
Error
Structured error.
Complete
Stream completion.
Unsubscribe
Cancel subscription.
Ping
Heartbeat ping.
Pong
Heartbeat pong.
ReceiptResponse
Receipt confirmation.
Disconnect
Graceful disconnect.
Status
Status frame (often top-level).
Implementations§
Trait Implementations§
Source§impl Clone for MessageType
impl Clone for MessageType
Source§fn clone(&self) -> MessageType
fn clone(&self) -> MessageType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MessageType
Source§impl Debug for MessageType
impl Debug for MessageType
Source§impl<'de> Deserialize<'de> for MessageType
impl<'de> Deserialize<'de> for MessageType
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
impl Eq for MessageType
Source§impl PartialEq for MessageType
impl PartialEq for MessageType
Source§impl Serialize for MessageType
impl Serialize for MessageType
impl StructuralPartialEq for MessageType
Auto Trait Implementations§
impl Freeze for MessageType
impl RefUnwindSafe for MessageType
impl Send for MessageType
impl Sync for MessageType
impl Unpin for MessageType
impl UnsafeUnpin for MessageType
impl UnwindSafe for MessageType
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