pub struct MemcachedContainer(/* private fields */);Expand description
A single-node Memcached container.
Implementations§
Source§impl MemcachedContainer
impl MemcachedContainer
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<MemcachedGuard>
pub async fn start(self) -> Result<MemcachedGuard>
Boots the container.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MemcachedContainer
impl !UnwindSafe for MemcachedContainer
impl Freeze for MemcachedContainer
impl Send for MemcachedContainer
impl Sync for MemcachedContainer
impl Unpin for MemcachedContainer
impl UnsafeUnpin for MemcachedContainer
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