pub struct Config {
pub name: String,
pub address: Vec<String>,
pub reconnect_delay: Duration,
}Expand description
Configuration for the rabbitmq connection
Fields§
§name: String§address: Vec<String>§reconnect_delay: DurationImplementations§
Source§impl Config
impl Config
Sourcepub fn new<I: Display, T: Iterator<Item = I>>(
name: String,
host: T,
user: &str,
password: &str,
reconnect_delay: Duration,
) -> Self
pub fn new<I: Display, T: Iterator<Item = I>>( name: String, host: T, user: &str, password: &str, reconnect_delay: Duration, ) -> Self
Creates a new configuration
§Arguments:
- host - the address to rabbitmq server
- user - user login name
- password - user login password
- sleep_duration - duration of the sleep before trying reconnect again to the rabbitmq server
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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