pub trait Client: Sync + Send + Clone {
    // Provided methods
    fn server(&self) -> Option<String> { ... }
    fn session(&self) -> Option<String> { ... }
}
Expand description

A representation the client and the connection between client and STOMP backend.

The specific type used will be implementation specific, and can therefore hold arbitrary information, which is passed to destinations when communicating with them. It therefore forms the bridge between the underlying transport and the destinations, allowing information to be shared between them.

Provided Methods§

source

fn server(&self) -> Option<String>

Indicates the value to returns for the server header in the stomp_parser::server::ConnectedFrame, if any.

Defaults to DEFAULT_SERVER.

source

fn session(&self) -> Option<String>

Indicates the value to returns for the session header in the stomp_parser::server::ConnectedFrame, if any.

Defaults to None

Implementors§