pub enum SshServerError {
DockerfileNotFound {
expected_path: PathBuf,
},
DockerBuildFailed {
image_name: String,
image_tag: String,
dockerfile_dir: String,
stdout: String,
stderr: String,
},
ContainerStartFailed {
source: TestcontainersError,
},
PortMappingFailed {
source: TestcontainersError,
},
DockerCommandFailed {
command: String,
source: Error,
},
InvalidUtf8InPath {
path: String,
},
DockerClientError {
source: Box<DockerError>,
},
}Expand description
Errors that can occur when working with SSH server containers
Variants§
DockerfileNotFound
SSH server Dockerfile not found at expected location
DockerBuildFailed
Docker build command failed
ContainerStartFailed
Failed to start SSH server container
Fields
§
source: TestcontainersErrorPortMappingFailed
Failed to get mapped port for SSH container
Fields
§
source: TestcontainersErrorDockerCommandFailed
Docker command execution failed
InvalidUtf8InPath
Invalid UTF-8 in Dockerfile path
DockerClientError
Docker client operation failed
Fields
§
source: Box<DockerError>Implementations§
Source§impl SshServerError
impl SshServerError
Sourcepub fn help(&self) -> &'static str
pub fn help(&self) -> &'static str
Get detailed troubleshooting guidance for this error
This method provides comprehensive troubleshooting steps that can be displayed to users when they need more help resolving the error.
§Example
use torrust_tracker_deployer_lib::testing::integration::ssh_server::RealSshServerContainer;
if let Err(e) = RealSshServerContainer::start().await {
eprintln!("Error: {e}");
eprintln!("\nTroubleshooting:\n{}", e.help());
}Trait Implementations§
Source§impl Debug for SshServerError
impl Debug for SshServerError
Source§impl Display for SshServerError
impl Display for SshServerError
Source§impl Error for SshServerError
impl Error for SshServerError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for SshServerError
impl !UnwindSafe for SshServerError
impl Freeze for SshServerError
impl Send for SshServerError
impl Sync for SshServerError
impl Unpin for SshServerError
impl UnsafeUnpin for SshServerError
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
type Err = !
fn into_result(self) -> Result<T, <T as IntoResult<T>>::Err>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.