pub struct Manager { /* private fields */ }Expand description
Manager for creating and recycling lapin::Connection.
Implementations§
Source§impl Manager
impl Manager
Sourcepub fn new<S: Into<String>>(
addr: S,
connection_properties: ConnectionProperties,
) -> Self
pub fn new<S: Into<String>>( addr: S, connection_properties: ConnectionProperties, ) -> Self
Creates a new Manager using the given AMQP address and
lapin::ConnectionProperties.
Trait Implementations§
Source§impl Manager for Manager
impl Manager for Manager
Source§async fn create(&self) -> Result<Connection, Error>
async fn create(&self) -> Result<Connection, Error>
Creates a new instance of
Manager::Type.Source§async fn recycle(
&self,
conn: &mut Connection,
_: &Metrics,
) -> RecycleResult<Error>
async fn recycle( &self, conn: &mut Connection, _: &Metrics, ) -> RecycleResult<Error>
Tries to recycle an instance of
Manager::Type. Read moreAuto Trait Implementations§
impl Freeze for Manager
impl !RefUnwindSafe for Manager
impl Send for Manager
impl Sync for Manager
impl Unpin for Manager
impl !UnwindSafe for Manager
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