Crate stomp_agnostic

Crate stomp_agnostic 

Source
Expand description

§STOMP Agnostic

stomp-agnostic - A transport agnostic library for handling of STOMP messages

This library exposes STOMP functionality through the StompHandle type. The StompHandle needs an implementation of Transport.

stomp-agnostic is both transport agnostic, and async agnostic.

§(Non-) Performance

This crate does not have a specific focus on performance.

§Transport agnostic

Other STOMP libraries, like async-stomp, wstomp, etc. focus on one, or a few, specific transport methods such as TCP or WebSockets. This crate on the other hand, exposes a trait Transport and the implementor is responsible for the transport. This makes this crate compatible with e.g. tokio-tungstenite, but you have to implement the Transport trait yourself, there is nothing implemented for tokio-tungstenite out-of-the box.

§Async agnostic

This crate does not depend on a specific async stack. Bring your own.

Structs§

Message
A representation of a STOMP frame
StompHandle
A handle that reads and writes STOMP messages given an implementation of Transport.

Enums§

AckMode
Acknowledgment modes for STOMP subscriptions
FromServer
A STOMP message sent from the server
ReadError
ReadResponse
A response coming down the line from the transport layer. When the transport layer is e.g. WebSocket, custom data such as Ping/Pong can be handled separately from STOMP data by using the Custom variant.
Response
A parsed response, either a Message coming from the server, or a custom protocol signal in the Custom variant.
ToServer
A STOMP message sent by the client
WriteError

Traits§

Transport