Enum stomp_parser::client::ClientFrame
source · pub enum ClientFrame {
Abort(AbortFrame),
Ack(AckFrame),
Begin(BeginFrame),
Commit(CommitFrame),
Connect(ConnectFrame),
Disconnect(DisconnectFrame),
Nack(NackFrame),
Send(SendFrame),
Subscribe(SubscribeFrame),
Unsubscribe(UnsubscribeFrame),
}
Expand description
The ClientFrame
enum contains a variant for each frame that the client can send.
The try_from(bytes: Vec<u8>)
method, provided via an implementaton of TryFrom<Vec<u8>>
, is the recommended way to obtain a Frame from a received message.
Variants§
Abort(AbortFrame)
Aborts a transaction that has begun but not yet been committed.
Ack(AckFrame)
Acknowledges a received message.
Begin(BeginFrame)
Begins a transaction.
Commit(CommitFrame)
Commits a transaction.
Connect(ConnectFrame)
Initiates a STOMP session.
Disconnect(DisconnectFrame)
Ends a STOMP session.
Nack(NackFrame)
Indicates that the client did not, or could not, process a message.
Send(SendFrame)
Sends a message to a specific destination.
Subscribe(SubscribeFrame)
Subscribes to a specific destination.
Unsubscribe(UnsubscribeFrame)
Cancels a specific subscription.
Trait Implementations§
source§impl Debug for ClientFrame
impl Debug for ClientFrame
source§impl Into<Vec<u8, Global>> for ClientFrame
impl Into<Vec<u8, Global>> for ClientFrame
This implementation serialises ClientFrame
into a byte array.
source§impl TryFrom<Vec<u8, Global>> for ClientFrame
impl TryFrom<Vec<u8, Global>> for ClientFrame
Parses a ClientFrame
from the data contained in the provided vector of bytes.
§type Error = StompParseError
type Error = StompParseError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl RefUnwindSafe for ClientFrame
impl Send for ClientFrame
impl Sync for ClientFrame
impl Unpin for ClientFrame
impl UnwindSafe for ClientFrame
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