pub struct StaticConnectionFactory { /* private fields */ }Expand description
A simple factory that creates channels from a static lapin::Connection.
Does not handle reconnection — if the connection drops, channel creation will fail until the connection is re-established externally.
For applications with their own connection management (e.g. connection pools
or reconnect loops), implement ChannelFactory directly to integrate
with your reconnection logic.
Implementations§
Source§impl StaticConnectionFactory
impl StaticConnectionFactory
Sourcepub fn new(connection: Connection) -> Self
pub fn new(connection: Connection) -> Self
Create a factory backed by the given connection.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for StaticConnectionFactory
impl !RefUnwindSafe for StaticConnectionFactory
impl Send for StaticConnectionFactory
impl Sync for StaticConnectionFactory
impl Unpin for StaticConnectionFactory
impl UnsafeUnpin for StaticConnectionFactory
impl !UnwindSafe for StaticConnectionFactory
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