pub struct ContainerManager { /* private fields */ }Expand description
Сentrally manages containers.
Implementations§
Source§impl ContainerManager
impl ContainerManager
Sourcepub async fn get() -> Result<&'static Self>
pub async fn get() -> Result<&'static Self>
Initialises the docker client.
§Errors
Will return an error if there was a problem while initialising the docker client.
Sourcepub async fn launch_chromedriver_container(&self) -> Result<String>
pub async fn launch_chromedriver_container(&self) -> Result<String>
Function for starting chromedriver container.
§Errors
Will return an error if there was a problem while starting the chromedriver container.
Sourcepub async fn inspect_container(
&self,
container_id: &str,
) -> Result<ContainerInspectResponse>
pub async fn inspect_container( &self, container_id: &str, ) -> Result<ContainerInspectResponse>
Get container information.
§Errors
Will return an error if there was a problem while getting the container information.
Auto Trait Implementations§
impl Freeze for ContainerManager
impl !RefUnwindSafe for ContainerManager
impl Send for ContainerManager
impl Sync for ContainerManager
impl Unpin for ContainerManager
impl !UnwindSafe for ContainerManager
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more