pub struct DsnChunks<H, U, P, VH>{
pub host: H,
pub port: u16,
pub user: U,
pub password: P,
pub vhost: VH,
}Expand description
Groups the pieces of a RabbitMQ DSN for convenient passing into
Handle::new.
Fields§
§host: HThe localhost part of amqp://user:pass@localhost:5672/%2F.
port: u16The 5672 part of amqp://user:pass@localhost:5672/%2F.
user: UThe user part of amqp://user:pass@localhost:5672/%2F.
password: PThe pass part of amqp://user:pass@localhost:5672/%2F.
This has to be represented with anything that implements
Into<SecureString>, which includes &str.
vhost: VHThe %2F part of amqp://user:pass@localhost:5672/%2F.
This does not need to be percent-encoded. Handle takes
care of percent-encoding. In the example above, the equivalent
human-readable string "/" will work just fine.
Trait Implementations§
Auto Trait Implementations§
impl<H, U, P, VH> Freeze for DsnChunks<H, U, P, VH>
impl<H, U, P, VH> RefUnwindSafe for DsnChunks<H, U, P, VH>
impl<H, U, P, VH> Send for DsnChunks<H, U, P, VH>
impl<H, U, P, VH> Sync for DsnChunks<H, U, P, VH>
impl<H, U, P, VH> Unpin for DsnChunks<H, U, P, VH>
impl<H, U, P, VH> UnwindSafe for DsnChunks<H, U, P, VH>
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