pub struct RedpandaContainer(/* private fields */);Expand description
A single-node Redpanda broker.
Implementations§
Source§impl RedpandaContainer
impl RedpandaContainer
Sourcepub fn new() -> Self
pub fn new() -> Self
Builds a container from the pinned default image
(redpandadata/redpanda:v24.2.4).
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<RedpandaGuard>
pub async fn start(self) -> Result<RedpandaGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RedpandaContainer
impl !UnwindSafe for RedpandaContainer
impl Freeze for RedpandaContainer
impl Send for RedpandaContainer
impl Sync for RedpandaContainer
impl Unpin for RedpandaContainer
impl UnsafeUnpin for RedpandaContainer
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