pub enum TrainctlError {
Show 15 variants
Config(ConfigError),
CloudProvider {
provider: String,
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Resource {
resource_type: String,
operation: String,
resource_id: Option<ResourceId>,
message: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
ResourceExists {
resource_type: String,
resource_id: ResourceId,
},
ResourceNotFound {
resource_type: String,
resource_id: ResourceId,
},
Retryable {
attempt: u32,
max_attempts: u32,
reason: String,
source: Option<Box<dyn Error + Send + Sync>>,
},
Io(Error),
Aws(String),
S3(String),
Ssm(String),
Validation {
field: String,
reason: String,
},
CostTracking(String),
Cleanup(String),
DataTransfer(String),
Json(Error),
}Expand description
Main error type for runctl
Variants§
Config(ConfigError)
CloudProvider
Resource
Fields
§
resource_id: Option<ResourceId>ResourceExists
ResourceNotFound
Retryable
Io(Error)
Aws(String)
S3(String)
Ssm(String)
Validation
CostTracking(String)
Cleanup(String)
DataTransfer(String)
Json(Error)
Trait Implementations§
Source§impl Debug for TrainctlError
impl Debug for TrainctlError
Source§impl Display for TrainctlError
impl Display for TrainctlError
Source§impl Error for TrainctlError
impl Error for TrainctlError
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<ConfigError> for TrainctlError
impl From<ConfigError> for TrainctlError
Source§fn from(source: ConfigError) -> Self
fn from(source: ConfigError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for TrainctlError
impl From<Error> for TrainctlError
Source§impl From<Error> for TrainctlError
impl From<Error> for TrainctlError
Source§impl IsRetryable for TrainctlError
impl IsRetryable for TrainctlError
fn is_retryable(&self) -> bool
Auto Trait Implementations§
impl Freeze for TrainctlError
impl !RefUnwindSafe for TrainctlError
impl Send for TrainctlError
impl Sync for TrainctlError
impl Unpin for TrainctlError
impl !UnwindSafe for TrainctlError
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 moreCreates a shared type from an unshared type.
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
Source§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
Converts the given value to a
CompactString. Read more