pub enum ClientError {
Show 19 variants
Init(Error),
Configuration(ConfigurationError),
InvalidDockerHost(String),
PullImage {
descriptor: String,
err: Error,
},
PortMapping(PortMappingError),
ListContainers(Error),
CreateContainer(Error),
RemoveContainer(Error),
StartContainer(Error),
StopContainer(Error),
InspectContainer(Error),
CreateNetwork(Error),
InspectNetwork(Error),
ListNetworks(Error),
RemoveNetwork(Error),
InitExec(Error),
InspectExec(Error),
UploadToContainerError(Error),
CopyToContainerError(CopyToContainerError),
}Expand description
Error type for client operations.
Variantsยง
Init(Error)
Configuration(ConfigurationError)
InvalidDockerHost(String)
PullImage
PortMapping(PortMappingError)
ListContainers(Error)
CreateContainer(Error)
RemoveContainer(Error)
StartContainer(Error)
StopContainer(Error)
InspectContainer(Error)
CreateNetwork(Error)
InspectNetwork(Error)
ListNetworks(Error)
RemoveNetwork(Error)
InitExec(Error)
InspectExec(Error)
UploadToContainerError(Error)
CopyToContainerError(CopyToContainerError)
Trait Implementationsยง
Sourceยงimpl Debug for ClientError
impl Debug for ClientError
Sourceยงimpl Display for ClientError
impl Display for ClientError
Sourceยงimpl Error for ClientError
impl Error for ClientError
Sourceยงfn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 ยท Sourceยงfn description(&self) -> &str
fn description(&self) -> &str
๐Deprecated since 1.42.0: use the Display impl or to_string()
Sourceยงimpl From<ClientError> for TestcontainersError
impl From<ClientError> for TestcontainersError
Sourceยงfn from(source: ClientError) -> TestcontainersError
fn from(source: ClientError) -> TestcontainersError
Converts to this type from the input type.
Sourceยงimpl From<ConfigurationError> for ClientError
impl From<ConfigurationError> for ClientError
Sourceยงfn from(source: ConfigurationError) -> ClientError
fn from(source: ConfigurationError) -> ClientError
Converts to this type from the input type.
Sourceยงimpl From<PortMappingError> for ClientError
impl From<PortMappingError> for ClientError
Sourceยงfn from(source: PortMappingError) -> ClientError
fn from(source: PortMappingError) -> ClientError
Converts to this type from the input type.
Auto Trait Implementationsยง
impl Freeze for ClientError
impl !RefUnwindSafe for ClientError
impl Send for ClientError
impl Sync for ClientError
impl Unpin for ClientError
impl !UnwindSafe for ClientError
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> ImageRepository for Twhere
T: Display,
impl<T> ImageRepository for Twhere
T: Display,
fn image_path(&self, image: &str) -> String
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