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.

Modules§

client
transport

Structs§

Message
A representation of a STOMP frame

Enums§

AckMode
Acknowledgment modes for STOMP subscriptions
FromServer
A STOMP message sent from the server
ToServer
A STOMP message sent by the client