pub struct ConnectionBuilder { /* private fields */ }Expand description
Connection builder for fluent configuration
Implementations§
Source§impl ConnectionBuilder
impl ConnectionBuilder
Sourcepub fn connection_timeout(self, timeout_secs: u64) -> Self
pub fn connection_timeout(self, timeout_secs: u64) -> Self
Set connection timeout
Sourcepub async fn connect(self) -> Result<Arc<Connection>, RustRabbitError>
pub async fn connect(self) -> Result<Arc<Connection>, RustRabbitError>
Build and connect
Auto Trait Implementations§
impl Freeze for ConnectionBuilder
impl RefUnwindSafe for ConnectionBuilder
impl Send for ConnectionBuilder
impl Sync for ConnectionBuilder
impl Unpin for ConnectionBuilder
impl UnwindSafe for ConnectionBuilder
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