pub struct ChannelManager { /* private fields */ }Expand description
ChannelManager implements Manager to manage a pool of Channels.
ChannelManager keeps an internal ConnectionPool
in order to reuse connections across channels.
Implementations§
Source§impl ChannelManager
impl ChannelManager
Sourcepub fn new(connection_pool: ConnectionPool) -> Self
pub fn new(connection_pool: ConnectionPool) -> Self
Construct ChannelManager for a Channel.
By default, all channels will have publisher confirmations enabled,
but you can opt out using ChannelManager::without_publisher_confirmations
Sourcepub fn without_publisher_confirmations(self) -> Self
pub fn without_publisher_confirmations(self) -> Self
Disable publisher confirmations.
By default, we enable publisher confirmations, but you can opt out using this flag
Trait Implementations§
Source§impl Manager for ChannelManager
impl Manager for ChannelManager
Source§fn create<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Channel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn create<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Channel, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Creates a new instance of
Manager::Type.Auto Trait Implementations§
impl Freeze for ChannelManager
impl !RefUnwindSafe for ChannelManager
impl Send for ChannelManager
impl Sync for ChannelManager
impl Unpin for ChannelManager
impl !UnwindSafe for ChannelManager
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more