pub struct KafkaContainer(/* private fields */);Expand description
A single-node Kafka broker.
Implementations§
Source§impl KafkaContainer
impl KafkaContainer
Sourcepub fn with_image(image: &str) -> Self
pub fn with_image(image: &str) -> Self
Builds a container from a caller-chosen image.
Sourcepub async fn start(self) -> Result<KafkaGuard>
pub async fn start(self) -> Result<KafkaGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for KafkaContainer
impl !UnwindSafe for KafkaContainer
impl Freeze for KafkaContainer
impl Send for KafkaContainer
impl Sync for KafkaContainer
impl Unpin for KafkaContainer
impl UnsafeUnpin for KafkaContainer
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