#[non_exhaustive]pub enum Error {
InvalidInputException(InvalidInputException),
InvalidNextTokenException(InvalidNextTokenException),
LimitExceededException(LimitExceededException),
ResourceAlreadyExistsException(ResourceAlreadyExistsException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidInputException(InvalidInputException)
We can't process the request because it includes an invalid value or a value that exceeds the valid range.
InvalidNextTokenException(InvalidNextTokenException)
The token is not valid. Tokens expire after 24 hours.
LimitExceededException(LimitExceededException)
The limit on the number of resources per account has been exceeded.
ResourceAlreadyExistsException(ResourceAlreadyExistsException)
There is already a resource with this name. Try again with a different name.
ResourceInUseException(ResourceInUseException)
The specified resource is in use.
ResourceNotFoundException(ResourceNotFoundException)
We can't find a resource with that Amazon Resource Name (ARN). Check the ARN and try again.
Unhandled(Unhandled)
Unhandled
directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code()
:
err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ }
See ProvideErrorMetadata
for what information is available for the error.An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<BuildError> for Error
impl From<BuildError> for Error
Source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Source§impl From<CreateAutoPredictorError> for Error
impl From<CreateAutoPredictorError> for Error
Source§fn from(err: CreateAutoPredictorError) -> Self
fn from(err: CreateAutoPredictorError) -> Self
Source§impl From<CreateDatasetError> for Error
impl From<CreateDatasetError> for Error
Source§fn from(err: CreateDatasetError) -> Self
fn from(err: CreateDatasetError) -> Self
Source§impl From<CreateDatasetGroupError> for Error
impl From<CreateDatasetGroupError> for Error
Source§fn from(err: CreateDatasetGroupError) -> Self
fn from(err: CreateDatasetGroupError) -> Self
Source§impl From<CreateDatasetImportJobError> for Error
impl From<CreateDatasetImportJobError> for Error
Source§fn from(err: CreateDatasetImportJobError) -> Self
fn from(err: CreateDatasetImportJobError) -> Self
Source§impl From<CreateExplainabilityError> for Error
impl From<CreateExplainabilityError> for Error
Source§fn from(err: CreateExplainabilityError) -> Self
fn from(err: CreateExplainabilityError) -> Self
Source§impl From<CreateExplainabilityExportError> for Error
impl From<CreateExplainabilityExportError> for Error
Source§fn from(err: CreateExplainabilityExportError) -> Self
fn from(err: CreateExplainabilityExportError) -> Self
Source§impl From<CreateForecastError> for Error
impl From<CreateForecastError> for Error
Source§fn from(err: CreateForecastError) -> Self
fn from(err: CreateForecastError) -> Self
Source§impl From<CreateForecastExportJobError> for Error
impl From<CreateForecastExportJobError> for Error
Source§fn from(err: CreateForecastExportJobError) -> Self
fn from(err: CreateForecastExportJobError) -> Self
Source§impl From<CreateMonitorError> for Error
impl From<CreateMonitorError> for Error
Source§fn from(err: CreateMonitorError) -> Self
fn from(err: CreateMonitorError) -> Self
Source§impl From<CreatePredictorBacktestExportJobError> for Error
impl From<CreatePredictorBacktestExportJobError> for Error
Source§fn from(err: CreatePredictorBacktestExportJobError) -> Self
fn from(err: CreatePredictorBacktestExportJobError) -> Self
Source§impl From<CreatePredictorError> for Error
impl From<CreatePredictorError> for Error
Source§fn from(err: CreatePredictorError) -> Self
fn from(err: CreatePredictorError) -> Self
Source§impl From<CreateWhatIfAnalysisError> for Error
impl From<CreateWhatIfAnalysisError> for Error
Source§fn from(err: CreateWhatIfAnalysisError) -> Self
fn from(err: CreateWhatIfAnalysisError) -> Self
Source§impl From<CreateWhatIfForecastError> for Error
impl From<CreateWhatIfForecastError> for Error
Source§fn from(err: CreateWhatIfForecastError) -> Self
fn from(err: CreateWhatIfForecastError) -> Self
Source§impl From<CreateWhatIfForecastExportError> for Error
impl From<CreateWhatIfForecastExportError> for Error
Source§fn from(err: CreateWhatIfForecastExportError) -> Self
fn from(err: CreateWhatIfForecastExportError) -> Self
Source§impl From<DeleteDatasetError> for Error
impl From<DeleteDatasetError> for Error
Source§fn from(err: DeleteDatasetError) -> Self
fn from(err: DeleteDatasetError) -> Self
Source§impl From<DeleteDatasetGroupError> for Error
impl From<DeleteDatasetGroupError> for Error
Source§fn from(err: DeleteDatasetGroupError) -> Self
fn from(err: DeleteDatasetGroupError) -> Self
Source§impl From<DeleteDatasetImportJobError> for Error
impl From<DeleteDatasetImportJobError> for Error
Source§fn from(err: DeleteDatasetImportJobError) -> Self
fn from(err: DeleteDatasetImportJobError) -> Self
Source§impl From<DeleteExplainabilityError> for Error
impl From<DeleteExplainabilityError> for Error
Source§fn from(err: DeleteExplainabilityError) -> Self
fn from(err: DeleteExplainabilityError) -> Self
Source§impl From<DeleteExplainabilityExportError> for Error
impl From<DeleteExplainabilityExportError> for Error
Source§fn from(err: DeleteExplainabilityExportError) -> Self
fn from(err: DeleteExplainabilityExportError) -> Self
Source§impl From<DeleteForecastError> for Error
impl From<DeleteForecastError> for Error
Source§fn from(err: DeleteForecastError) -> Self
fn from(err: DeleteForecastError) -> Self
Source§impl From<DeleteForecastExportJobError> for Error
impl From<DeleteForecastExportJobError> for Error
Source§fn from(err: DeleteForecastExportJobError) -> Self
fn from(err: DeleteForecastExportJobError) -> Self
Source§impl From<DeleteMonitorError> for Error
impl From<DeleteMonitorError> for Error
Source§fn from(err: DeleteMonitorError) -> Self
fn from(err: DeleteMonitorError) -> Self
Source§impl From<DeletePredictorBacktestExportJobError> for Error
impl From<DeletePredictorBacktestExportJobError> for Error
Source§fn from(err: DeletePredictorBacktestExportJobError) -> Self
fn from(err: DeletePredictorBacktestExportJobError) -> Self
Source§impl From<DeletePredictorError> for Error
impl From<DeletePredictorError> for Error
Source§fn from(err: DeletePredictorError) -> Self
fn from(err: DeletePredictorError) -> Self
Source§impl From<DeleteResourceTreeError> for Error
impl From<DeleteResourceTreeError> for Error
Source§fn from(err: DeleteResourceTreeError) -> Self
fn from(err: DeleteResourceTreeError) -> Self
Source§impl From<DeleteWhatIfAnalysisError> for Error
impl From<DeleteWhatIfAnalysisError> for Error
Source§fn from(err: DeleteWhatIfAnalysisError) -> Self
fn from(err: DeleteWhatIfAnalysisError) -> Self
Source§impl From<DeleteWhatIfForecastError> for Error
impl From<DeleteWhatIfForecastError> for Error
Source§fn from(err: DeleteWhatIfForecastError) -> Self
fn from(err: DeleteWhatIfForecastError) -> Self
Source§impl From<DeleteWhatIfForecastExportError> for Error
impl From<DeleteWhatIfForecastExportError> for Error
Source§fn from(err: DeleteWhatIfForecastExportError) -> Self
fn from(err: DeleteWhatIfForecastExportError) -> Self
Source§impl From<DescribeAutoPredictorError> for Error
impl From<DescribeAutoPredictorError> for Error
Source§fn from(err: DescribeAutoPredictorError) -> Self
fn from(err: DescribeAutoPredictorError) -> Self
Source§impl From<DescribeDatasetError> for Error
impl From<DescribeDatasetError> for Error
Source§fn from(err: DescribeDatasetError) -> Self
fn from(err: DescribeDatasetError) -> Self
Source§impl From<DescribeDatasetGroupError> for Error
impl From<DescribeDatasetGroupError> for Error
Source§fn from(err: DescribeDatasetGroupError) -> Self
fn from(err: DescribeDatasetGroupError) -> Self
Source§impl From<DescribeDatasetImportJobError> for Error
impl From<DescribeDatasetImportJobError> for Error
Source§fn from(err: DescribeDatasetImportJobError) -> Self
fn from(err: DescribeDatasetImportJobError) -> Self
Source§impl From<DescribeExplainabilityError> for Error
impl From<DescribeExplainabilityError> for Error
Source§fn from(err: DescribeExplainabilityError) -> Self
fn from(err: DescribeExplainabilityError) -> Self
Source§impl From<DescribeExplainabilityExportError> for Error
impl From<DescribeExplainabilityExportError> for Error
Source§fn from(err: DescribeExplainabilityExportError) -> Self
fn from(err: DescribeExplainabilityExportError) -> Self
Source§impl From<DescribeForecastError> for Error
impl From<DescribeForecastError> for Error
Source§fn from(err: DescribeForecastError) -> Self
fn from(err: DescribeForecastError) -> Self
Source§impl From<DescribeForecastExportJobError> for Error
impl From<DescribeForecastExportJobError> for Error
Source§fn from(err: DescribeForecastExportJobError) -> Self
fn from(err: DescribeForecastExportJobError) -> Self
Source§impl From<DescribeMonitorError> for Error
impl From<DescribeMonitorError> for Error
Source§fn from(err: DescribeMonitorError) -> Self
fn from(err: DescribeMonitorError) -> Self
Source§impl From<DescribePredictorBacktestExportJobError> for Error
impl From<DescribePredictorBacktestExportJobError> for Error
Source§fn from(err: DescribePredictorBacktestExportJobError) -> Self
fn from(err: DescribePredictorBacktestExportJobError) -> Self
Source§impl From<DescribePredictorError> for Error
impl From<DescribePredictorError> for Error
Source§fn from(err: DescribePredictorError) -> Self
fn from(err: DescribePredictorError) -> Self
Source§impl From<DescribeWhatIfAnalysisError> for Error
impl From<DescribeWhatIfAnalysisError> for Error
Source§fn from(err: DescribeWhatIfAnalysisError) -> Self
fn from(err: DescribeWhatIfAnalysisError) -> Self
Source§impl From<DescribeWhatIfForecastError> for Error
impl From<DescribeWhatIfForecastError> for Error
Source§fn from(err: DescribeWhatIfForecastError) -> Self
fn from(err: DescribeWhatIfForecastError) -> Self
Source§impl From<DescribeWhatIfForecastExportError> for Error
impl From<DescribeWhatIfForecastExportError> for Error
Source§fn from(err: DescribeWhatIfForecastExportError) -> Self
fn from(err: DescribeWhatIfForecastExportError) -> Self
Source§impl From<GetAccuracyMetricsError> for Error
impl From<GetAccuracyMetricsError> for Error
Source§fn from(err: GetAccuracyMetricsError) -> Self
fn from(err: GetAccuracyMetricsError) -> Self
Source§impl From<ListDatasetGroupsError> for Error
impl From<ListDatasetGroupsError> for Error
Source§fn from(err: ListDatasetGroupsError) -> Self
fn from(err: ListDatasetGroupsError) -> Self
Source§impl From<ListDatasetImportJobsError> for Error
impl From<ListDatasetImportJobsError> for Error
Source§fn from(err: ListDatasetImportJobsError) -> Self
fn from(err: ListDatasetImportJobsError) -> Self
Source§impl From<ListDatasetsError> for Error
impl From<ListDatasetsError> for Error
Source§fn from(err: ListDatasetsError) -> Self
fn from(err: ListDatasetsError) -> Self
Source§impl From<ListExplainabilitiesError> for Error
impl From<ListExplainabilitiesError> for Error
Source§fn from(err: ListExplainabilitiesError) -> Self
fn from(err: ListExplainabilitiesError) -> Self
Source§impl From<ListExplainabilityExportsError> for Error
impl From<ListExplainabilityExportsError> for Error
Source§fn from(err: ListExplainabilityExportsError) -> Self
fn from(err: ListExplainabilityExportsError) -> Self
Source§impl From<ListForecastExportJobsError> for Error
impl From<ListForecastExportJobsError> for Error
Source§fn from(err: ListForecastExportJobsError) -> Self
fn from(err: ListForecastExportJobsError) -> Self
Source§impl From<ListForecastsError> for Error
impl From<ListForecastsError> for Error
Source§fn from(err: ListForecastsError) -> Self
fn from(err: ListForecastsError) -> Self
Source§impl From<ListMonitorEvaluationsError> for Error
impl From<ListMonitorEvaluationsError> for Error
Source§fn from(err: ListMonitorEvaluationsError) -> Self
fn from(err: ListMonitorEvaluationsError) -> Self
Source§impl From<ListMonitorsError> for Error
impl From<ListMonitorsError> for Error
Source§fn from(err: ListMonitorsError) -> Self
fn from(err: ListMonitorsError) -> Self
Source§impl From<ListPredictorBacktestExportJobsError> for Error
impl From<ListPredictorBacktestExportJobsError> for Error
Source§fn from(err: ListPredictorBacktestExportJobsError) -> Self
fn from(err: ListPredictorBacktestExportJobsError) -> Self
Source§impl From<ListPredictorsError> for Error
impl From<ListPredictorsError> for Error
Source§fn from(err: ListPredictorsError) -> Self
fn from(err: ListPredictorsError) -> Self
Source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
Source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Source§impl From<ListWhatIfAnalysesError> for Error
impl From<ListWhatIfAnalysesError> for Error
Source§fn from(err: ListWhatIfAnalysesError) -> Self
fn from(err: ListWhatIfAnalysesError) -> Self
Source§impl From<ListWhatIfForecastExportsError> for Error
impl From<ListWhatIfForecastExportsError> for Error
Source§fn from(err: ListWhatIfForecastExportsError) -> Self
fn from(err: ListWhatIfForecastExportsError) -> Self
Source§impl From<ListWhatIfForecastsError> for Error
impl From<ListWhatIfForecastsError> for Error
Source§fn from(err: ListWhatIfForecastsError) -> Self
fn from(err: ListWhatIfForecastsError) -> Self
Source§impl From<ResumeResourceError> for Error
impl From<ResumeResourceError> for Error
Source§fn from(err: ResumeResourceError) -> Self
fn from(err: ResumeResourceError) -> Self
Source§impl<R> From<SdkError<CreateAutoPredictorError, R>> for Error
impl<R> From<SdkError<CreateAutoPredictorError, R>> for Error
Source§fn from(err: SdkError<CreateAutoPredictorError, R>) -> Self
fn from(err: SdkError<CreateAutoPredictorError, R>) -> Self
Source§impl<R> From<SdkError<CreateDatasetError, R>> for Error
impl<R> From<SdkError<CreateDatasetError, R>> for Error
Source§fn from(err: SdkError<CreateDatasetError, R>) -> Self
fn from(err: SdkError<CreateDatasetError, R>) -> Self
Source§impl<R> From<SdkError<CreateDatasetGroupError, R>> for Error
impl<R> From<SdkError<CreateDatasetGroupError, R>> for Error
Source§fn from(err: SdkError<CreateDatasetGroupError, R>) -> Self
fn from(err: SdkError<CreateDatasetGroupError, R>) -> Self
Source§impl<R> From<SdkError<CreateDatasetImportJobError, R>> for Error
impl<R> From<SdkError<CreateDatasetImportJobError, R>> for Error
Source§fn from(err: SdkError<CreateDatasetImportJobError, R>) -> Self
fn from(err: SdkError<CreateDatasetImportJobError, R>) -> Self
Source§impl<R> From<SdkError<CreateExplainabilityError, R>> for Error
impl<R> From<SdkError<CreateExplainabilityError, R>> for Error
Source§fn from(err: SdkError<CreateExplainabilityError, R>) -> Self
fn from(err: SdkError<CreateExplainabilityError, R>) -> Self
Source§impl<R> From<SdkError<CreateExplainabilityExportError, R>> for Error
impl<R> From<SdkError<CreateExplainabilityExportError, R>> for Error
Source§fn from(err: SdkError<CreateExplainabilityExportError, R>) -> Self
fn from(err: SdkError<CreateExplainabilityExportError, R>) -> Self
Source§impl<R> From<SdkError<CreateForecastError, R>> for Error
impl<R> From<SdkError<CreateForecastError, R>> for Error
Source§fn from(err: SdkError<CreateForecastError, R>) -> Self
fn from(err: SdkError<CreateForecastError, R>) -> Self
Source§impl<R> From<SdkError<CreateForecastExportJobError, R>> for Error
impl<R> From<SdkError<CreateForecastExportJobError, R>> for Error
Source§fn from(err: SdkError<CreateForecastExportJobError, R>) -> Self
fn from(err: SdkError<CreateForecastExportJobError, R>) -> Self
Source§impl<R> From<SdkError<CreateMonitorError, R>> for Error
impl<R> From<SdkError<CreateMonitorError, R>> for Error
Source§fn from(err: SdkError<CreateMonitorError, R>) -> Self
fn from(err: SdkError<CreateMonitorError, R>) -> Self
Source§impl<R> From<SdkError<CreatePredictorBacktestExportJobError, R>> for Error
impl<R> From<SdkError<CreatePredictorBacktestExportJobError, R>> for Error
Source§fn from(err: SdkError<CreatePredictorBacktestExportJobError, R>) -> Self
fn from(err: SdkError<CreatePredictorBacktestExportJobError, R>) -> Self
Source§impl<R> From<SdkError<CreatePredictorError, R>> for Error
impl<R> From<SdkError<CreatePredictorError, R>> for Error
Source§fn from(err: SdkError<CreatePredictorError, R>) -> Self
fn from(err: SdkError<CreatePredictorError, R>) -> Self
Source§impl<R> From<SdkError<CreateWhatIfAnalysisError, R>> for Error
impl<R> From<SdkError<CreateWhatIfAnalysisError, R>> for Error
Source§fn from(err: SdkError<CreateWhatIfAnalysisError, R>) -> Self
fn from(err: SdkError<CreateWhatIfAnalysisError, R>) -> Self
Source§impl<R> From<SdkError<CreateWhatIfForecastError, R>> for Error
impl<R> From<SdkError<CreateWhatIfForecastError, R>> for Error
Source§fn from(err: SdkError<CreateWhatIfForecastError, R>) -> Self
fn from(err: SdkError<CreateWhatIfForecastError, R>) -> Self
Source§impl<R> From<SdkError<CreateWhatIfForecastExportError, R>> for Error
impl<R> From<SdkError<CreateWhatIfForecastExportError, R>> for Error
Source§fn from(err: SdkError<CreateWhatIfForecastExportError, R>) -> Self
fn from(err: SdkError<CreateWhatIfForecastExportError, R>) -> Self
Source§impl<R> From<SdkError<DeleteDatasetError, R>> for Error
impl<R> From<SdkError<DeleteDatasetError, R>> for Error
Source§fn from(err: SdkError<DeleteDatasetError, R>) -> Self
fn from(err: SdkError<DeleteDatasetError, R>) -> Self
Source§impl<R> From<SdkError<DeleteDatasetGroupError, R>> for Error
impl<R> From<SdkError<DeleteDatasetGroupError, R>> for Error
Source§fn from(err: SdkError<DeleteDatasetGroupError, R>) -> Self
fn from(err: SdkError<DeleteDatasetGroupError, R>) -> Self
Source§impl<R> From<SdkError<DeleteDatasetImportJobError, R>> for Error
impl<R> From<SdkError<DeleteDatasetImportJobError, R>> for Error
Source§fn from(err: SdkError<DeleteDatasetImportJobError, R>) -> Self
fn from(err: SdkError<DeleteDatasetImportJobError, R>) -> Self
Source§impl<R> From<SdkError<DeleteExplainabilityError, R>> for Error
impl<R> From<SdkError<DeleteExplainabilityError, R>> for Error
Source§fn from(err: SdkError<DeleteExplainabilityError, R>) -> Self
fn from(err: SdkError<DeleteExplainabilityError, R>) -> Self
Source§impl<R> From<SdkError<DeleteExplainabilityExportError, R>> for Error
impl<R> From<SdkError<DeleteExplainabilityExportError, R>> for Error
Source§fn from(err: SdkError<DeleteExplainabilityExportError, R>) -> Self
fn from(err: SdkError<DeleteExplainabilityExportError, R>) -> Self
Source§impl<R> From<SdkError<DeleteForecastError, R>> for Error
impl<R> From<SdkError<DeleteForecastError, R>> for Error
Source§fn from(err: SdkError<DeleteForecastError, R>) -> Self
fn from(err: SdkError<DeleteForecastError, R>) -> Self
Source§impl<R> From<SdkError<DeleteForecastExportJobError, R>> for Error
impl<R> From<SdkError<DeleteForecastExportJobError, R>> for Error
Source§fn from(err: SdkError<DeleteForecastExportJobError, R>) -> Self
fn from(err: SdkError<DeleteForecastExportJobError, R>) -> Self
Source§impl<R> From<SdkError<DeleteMonitorError, R>> for Error
impl<R> From<SdkError<DeleteMonitorError, R>> for Error
Source§fn from(err: SdkError<DeleteMonitorError, R>) -> Self
fn from(err: SdkError<DeleteMonitorError, R>) -> Self
Source§impl<R> From<SdkError<DeletePredictorBacktestExportJobError, R>> for Error
impl<R> From<SdkError<DeletePredictorBacktestExportJobError, R>> for Error
Source§fn from(err: SdkError<DeletePredictorBacktestExportJobError, R>) -> Self
fn from(err: SdkError<DeletePredictorBacktestExportJobError, R>) -> Self
Source§impl<R> From<SdkError<DeletePredictorError, R>> for Error
impl<R> From<SdkError<DeletePredictorError, R>> for Error
Source§fn from(err: SdkError<DeletePredictorError, R>) -> Self
fn from(err: SdkError<DeletePredictorError, R>) -> Self
Source§impl<R> From<SdkError<DeleteResourceTreeError, R>> for Error
impl<R> From<SdkError<DeleteResourceTreeError, R>> for Error
Source§fn from(err: SdkError<DeleteResourceTreeError, R>) -> Self
fn from(err: SdkError<DeleteResourceTreeError, R>) -> Self
Source§impl<R> From<SdkError<DeleteWhatIfAnalysisError, R>> for Error
impl<R> From<SdkError<DeleteWhatIfAnalysisError, R>> for Error
Source§fn from(err: SdkError<DeleteWhatIfAnalysisError, R>) -> Self
fn from(err: SdkError<DeleteWhatIfAnalysisError, R>) -> Self
Source§impl<R> From<SdkError<DeleteWhatIfForecastError, R>> for Error
impl<R> From<SdkError<DeleteWhatIfForecastError, R>> for Error
Source§fn from(err: SdkError<DeleteWhatIfForecastError, R>) -> Self
fn from(err: SdkError<DeleteWhatIfForecastError, R>) -> Self
Source§impl<R> From<SdkError<DeleteWhatIfForecastExportError, R>> for Error
impl<R> From<SdkError<DeleteWhatIfForecastExportError, R>> for Error
Source§fn from(err: SdkError<DeleteWhatIfForecastExportError, R>) -> Self
fn from(err: SdkError<DeleteWhatIfForecastExportError, R>) -> Self
Source§impl<R> From<SdkError<DescribeAutoPredictorError, R>> for Error
impl<R> From<SdkError<DescribeAutoPredictorError, R>> for Error
Source§fn from(err: SdkError<DescribeAutoPredictorError, R>) -> Self
fn from(err: SdkError<DescribeAutoPredictorError, R>) -> Self
Source§impl<R> From<SdkError<DescribeDatasetError, R>> for Error
impl<R> From<SdkError<DescribeDatasetError, R>> for Error
Source§fn from(err: SdkError<DescribeDatasetError, R>) -> Self
fn from(err: SdkError<DescribeDatasetError, R>) -> Self
Source§impl<R> From<SdkError<DescribeDatasetGroupError, R>> for Error
impl<R> From<SdkError<DescribeDatasetGroupError, R>> for Error
Source§fn from(err: SdkError<DescribeDatasetGroupError, R>) -> Self
fn from(err: SdkError<DescribeDatasetGroupError, R>) -> Self
Source§impl<R> From<SdkError<DescribeDatasetImportJobError, R>> for Error
impl<R> From<SdkError<DescribeDatasetImportJobError, R>> for Error
Source§fn from(err: SdkError<DescribeDatasetImportJobError, R>) -> Self
fn from(err: SdkError<DescribeDatasetImportJobError, R>) -> Self
Source§impl<R> From<SdkError<DescribeExplainabilityError, R>> for Error
impl<R> From<SdkError<DescribeExplainabilityError, R>> for Error
Source§fn from(err: SdkError<DescribeExplainabilityError, R>) -> Self
fn from(err: SdkError<DescribeExplainabilityError, R>) -> Self
Source§impl<R> From<SdkError<DescribeExplainabilityExportError, R>> for Error
impl<R> From<SdkError<DescribeExplainabilityExportError, R>> for Error
Source§fn from(err: SdkError<DescribeExplainabilityExportError, R>) -> Self
fn from(err: SdkError<DescribeExplainabilityExportError, R>) -> Self
Source§impl<R> From<SdkError<DescribeForecastError, R>> for Error
impl<R> From<SdkError<DescribeForecastError, R>> for Error
Source§fn from(err: SdkError<DescribeForecastError, R>) -> Self
fn from(err: SdkError<DescribeForecastError, R>) -> Self
Source§impl<R> From<SdkError<DescribeForecastExportJobError, R>> for Error
impl<R> From<SdkError<DescribeForecastExportJobError, R>> for Error
Source§fn from(err: SdkError<DescribeForecastExportJobError, R>) -> Self
fn from(err: SdkError<DescribeForecastExportJobError, R>) -> Self
Source§impl<R> From<SdkError<DescribeMonitorError, R>> for Error
impl<R> From<SdkError<DescribeMonitorError, R>> for Error
Source§fn from(err: SdkError<DescribeMonitorError, R>) -> Self
fn from(err: SdkError<DescribeMonitorError, R>) -> Self
Source§impl<R> From<SdkError<DescribePredictorBacktestExportJobError, R>> for Error
impl<R> From<SdkError<DescribePredictorBacktestExportJobError, R>> for Error
Source§fn from(err: SdkError<DescribePredictorBacktestExportJobError, R>) -> Self
fn from(err: SdkError<DescribePredictorBacktestExportJobError, R>) -> Self
Source§impl<R> From<SdkError<DescribePredictorError, R>> for Error
impl<R> From<SdkError<DescribePredictorError, R>> for Error
Source§fn from(err: SdkError<DescribePredictorError, R>) -> Self
fn from(err: SdkError<DescribePredictorError, R>) -> Self
Source§impl<R> From<SdkError<DescribeWhatIfAnalysisError, R>> for Error
impl<R> From<SdkError<DescribeWhatIfAnalysisError, R>> for Error
Source§fn from(err: SdkError<DescribeWhatIfAnalysisError, R>) -> Self
fn from(err: SdkError<DescribeWhatIfAnalysisError, R>) -> Self
Source§impl<R> From<SdkError<DescribeWhatIfForecastError, R>> for Error
impl<R> From<SdkError<DescribeWhatIfForecastError, R>> for Error
Source§fn from(err: SdkError<DescribeWhatIfForecastError, R>) -> Self
fn from(err: SdkError<DescribeWhatIfForecastError, R>) -> Self
Source§impl<R> From<SdkError<DescribeWhatIfForecastExportError, R>> for Error
impl<R> From<SdkError<DescribeWhatIfForecastExportError, R>> for Error
Source§fn from(err: SdkError<DescribeWhatIfForecastExportError, R>) -> Self
fn from(err: SdkError<DescribeWhatIfForecastExportError, R>) -> Self
Source§impl<R> From<SdkError<GetAccuracyMetricsError, R>> for Error
impl<R> From<SdkError<GetAccuracyMetricsError, R>> for Error
Source§fn from(err: SdkError<GetAccuracyMetricsError, R>) -> Self
fn from(err: SdkError<GetAccuracyMetricsError, R>) -> Self
Source§impl<R> From<SdkError<ListDatasetGroupsError, R>> for Error
impl<R> From<SdkError<ListDatasetGroupsError, R>> for Error
Source§fn from(err: SdkError<ListDatasetGroupsError, R>) -> Self
fn from(err: SdkError<ListDatasetGroupsError, R>) -> Self
Source§impl<R> From<SdkError<ListDatasetImportJobsError, R>> for Error
impl<R> From<SdkError<ListDatasetImportJobsError, R>> for Error
Source§fn from(err: SdkError<ListDatasetImportJobsError, R>) -> Self
fn from(err: SdkError<ListDatasetImportJobsError, R>) -> Self
Source§impl<R> From<SdkError<ListDatasetsError, R>> for Error
impl<R> From<SdkError<ListDatasetsError, R>> for Error
Source§fn from(err: SdkError<ListDatasetsError, R>) -> Self
fn from(err: SdkError<ListDatasetsError, R>) -> Self
Source§impl<R> From<SdkError<ListExplainabilitiesError, R>> for Error
impl<R> From<SdkError<ListExplainabilitiesError, R>> for Error
Source§fn from(err: SdkError<ListExplainabilitiesError, R>) -> Self
fn from(err: SdkError<ListExplainabilitiesError, R>) -> Self
Source§impl<R> From<SdkError<ListExplainabilityExportsError, R>> for Error
impl<R> From<SdkError<ListExplainabilityExportsError, R>> for Error
Source§fn from(err: SdkError<ListExplainabilityExportsError, R>) -> Self
fn from(err: SdkError<ListExplainabilityExportsError, R>) -> Self
Source§impl<R> From<SdkError<ListForecastExportJobsError, R>> for Error
impl<R> From<SdkError<ListForecastExportJobsError, R>> for Error
Source§fn from(err: SdkError<ListForecastExportJobsError, R>) -> Self
fn from(err: SdkError<ListForecastExportJobsError, R>) -> Self
Source§impl<R> From<SdkError<ListForecastsError, R>> for Error
impl<R> From<SdkError<ListForecastsError, R>> for Error
Source§fn from(err: SdkError<ListForecastsError, R>) -> Self
fn from(err: SdkError<ListForecastsError, R>) -> Self
Source§impl<R> From<SdkError<ListMonitorEvaluationsError, R>> for Error
impl<R> From<SdkError<ListMonitorEvaluationsError, R>> for Error
Source§fn from(err: SdkError<ListMonitorEvaluationsError, R>) -> Self
fn from(err: SdkError<ListMonitorEvaluationsError, R>) -> Self
Source§impl<R> From<SdkError<ListMonitorsError, R>> for Error
impl<R> From<SdkError<ListMonitorsError, R>> for Error
Source§fn from(err: SdkError<ListMonitorsError, R>) -> Self
fn from(err: SdkError<ListMonitorsError, R>) -> Self
Source§impl<R> From<SdkError<ListPredictorBacktestExportJobsError, R>> for Error
impl<R> From<SdkError<ListPredictorBacktestExportJobsError, R>> for Error
Source§fn from(err: SdkError<ListPredictorBacktestExportJobsError, R>) -> Self
fn from(err: SdkError<ListPredictorBacktestExportJobsError, R>) -> Self
Source§impl<R> From<SdkError<ListPredictorsError, R>> for Error
impl<R> From<SdkError<ListPredictorsError, R>> for Error
Source§fn from(err: SdkError<ListPredictorsError, R>) -> Self
fn from(err: SdkError<ListPredictorsError, R>) -> Self
Source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
Source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Source§impl<R> From<SdkError<ListWhatIfAnalysesError, R>> for Error
impl<R> From<SdkError<ListWhatIfAnalysesError, R>> for Error
Source§fn from(err: SdkError<ListWhatIfAnalysesError, R>) -> Self
fn from(err: SdkError<ListWhatIfAnalysesError, R>) -> Self
Source§impl<R> From<SdkError<ListWhatIfForecastExportsError, R>> for Error
impl<R> From<SdkError<ListWhatIfForecastExportsError, R>> for Error
Source§fn from(err: SdkError<ListWhatIfForecastExportsError, R>) -> Self
fn from(err: SdkError<ListWhatIfForecastExportsError, R>) -> Self
Source§impl<R> From<SdkError<ListWhatIfForecastsError, R>> for Error
impl<R> From<SdkError<ListWhatIfForecastsError, R>> for Error
Source§fn from(err: SdkError<ListWhatIfForecastsError, R>) -> Self
fn from(err: SdkError<ListWhatIfForecastsError, R>) -> Self
Source§impl<R> From<SdkError<ResumeResourceError, R>> for Error
impl<R> From<SdkError<ResumeResourceError, R>> for Error
Source§fn from(err: SdkError<ResumeResourceError, R>) -> Self
fn from(err: SdkError<ResumeResourceError, R>) -> Self
Source§impl<R> From<SdkError<StopResourceError, R>> for Error
impl<R> From<SdkError<StopResourceError, R>> for Error
Source§fn from(err: SdkError<StopResourceError, R>) -> Self
fn from(err: SdkError<StopResourceError, R>) -> Self
Source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
Source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
Source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Source§impl<R> From<SdkError<UpdateDatasetGroupError, R>> for Error
impl<R> From<SdkError<UpdateDatasetGroupError, R>> for Error
Source§fn from(err: SdkError<UpdateDatasetGroupError, R>) -> Self
fn from(err: SdkError<UpdateDatasetGroupError, R>) -> Self
Source§impl From<StopResourceError> for Error
impl From<StopResourceError> for Error
Source§fn from(err: StopResourceError) -> Self
fn from(err: StopResourceError) -> Self
Source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
Source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
Source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
Source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Source§impl From<UpdateDatasetGroupError> for Error
impl From<UpdateDatasetGroupError> for Error
Source§fn from(err: UpdateDatasetGroupError) -> Self
fn from(err: UpdateDatasetGroupError) -> Self
Source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
Source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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
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>
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>
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> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);