pub struct RabbitMqContainer { /* private fields */ }Expand description
A single-node RabbitMQ container with the management plugin enabled.
Implementations§
Source§impl RabbitMqContainer
impl RabbitMqContainer
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds a container from the pinned default image
(rabbitmq:4-management-alpine).
Sourcepub fn with_image(image: &str) -> Self
pub fn with_image(image: &str) -> Self
Builds a container from a caller-chosen image.
Sourcepub fn with_username(self, username: &str) -> Self
pub fn with_username(self, username: &str) -> Self
Overrides RABBITMQ_DEFAULT_USER (default guest).
Sourcepub fn with_password(self, password: &str) -> Self
pub fn with_password(self, password: &str) -> Self
Overrides RABBITMQ_DEFAULT_PASS (default guest).
Sourcepub async fn start(self) -> Result<RabbitMqGuard>
pub async fn start(self) -> Result<RabbitMqGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RabbitMqContainer
impl !UnwindSafe for RabbitMqContainer
impl Freeze for RabbitMqContainer
impl Send for RabbitMqContainer
impl Sync for RabbitMqContainer
impl Unpin for RabbitMqContainer
impl UnsafeUnpin for RabbitMqContainer
Blanket Implementations§
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