pub struct RedisContainer(/* private fields */);Expand description
A single-node Redis container. Readiness is anchored on Redis’s own “Ready to accept connections” log line rather than a TCP probe: on a loaded host the port forwarder can accept and hold a connection in the window between Redis binding its socket and actually serving, which a bare listening-port check cannot see through.
Implementations§
Source§impl RedisContainer
impl RedisContainer
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<RedisGuard>
pub async fn start(self) -> Result<RedisGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for RedisContainer
impl !UnwindSafe for RedisContainer
impl Freeze for RedisContainer
impl Send for RedisContainer
impl Sync for RedisContainer
impl Unpin for RedisContainer
impl UnsafeUnpin for RedisContainer
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