oa_gateway_stomp::client

Type Alias Stream

Source
type Stream = MaybeTlsStream<TcpStream>;
Expand description

The socket a STOMP session runs over, TLS or not.

Aliased Type§

enum Stream {
    Plain(TcpStream),
    Server(Box<TlsStream<TcpStream>>),
    Client(Box<TlsStream<TcpStream>>),
}

Variants§

§

Plain(TcpStream)

TLS is not configured for this connection.

§

Server(Box<TlsStream<TcpStream>>)

This side accepted a TLS handshake (OWP).

§

Client(Box<TlsStream<TcpStream>>)

This side originated a TLS handshake (STOMP).