Trait PubSubMetadata

Source
pub trait PubSubMetadata: Metadata {
    // Required method
    fn session(&self) -> Option<Arc<Session>>;
}
Expand description

Metadata extension for pub-sub method handling.

Required Methods§

Source

fn session(&self) -> Option<Arc<Session>>

Returns session object associated with given request/client. None indicates that sessions are not supported on the used transport.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§