Skip to main content

ClientSessionProvider

Trait ClientSessionProvider 

Source
pub trait ClientSessionProvider {
    // Required method
    fn client_session(&self) -> Option<&ClientSession>;
}
Expand description

Implemented by concrete client handles that borrow one shared session.

Publicly constructed handles always return Some. None is reserved for crate-internal bootstrap producers that are owned directly by a rocketmq_runtime::ChildServiceContext instead of a public client session.

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§