#[non_exhaustive]pub enum Error {
Show 35 variants
AccessDeniedException(AccessDeniedException),
BadRequestException(BadRequestException),
BulkLoadIdNotFoundException(BulkLoadIdNotFoundException),
CancelledByUserException(CancelledByUserException),
ClientTimeoutException(ClientTimeoutException),
ConcurrentModificationException(ConcurrentModificationException),
ConstraintViolationException(ConstraintViolationException),
ExpiredStreamException(ExpiredStreamException),
FailureByQueryException(FailureByQueryException),
IllegalArgumentException(IllegalArgumentException),
InternalFailureException(InternalFailureException),
InvalidArgumentException(InvalidArgumentException),
InvalidNumericDataException(InvalidNumericDataException),
InvalidParameterException(InvalidParameterException),
LoadUrlAccessDeniedException(LoadUrlAccessDeniedException),
MlResourceNotFoundException(MlResourceNotFoundException),
MalformedQueryException(MalformedQueryException),
MemoryLimitExceededException(MemoryLimitExceededException),
MethodNotAllowedException(MethodNotAllowedException),
MissingParameterException(MissingParameterException),
ParsingException(ParsingException),
PreconditionsFailedException(PreconditionsFailedException),
QueryLimitExceededException(QueryLimitExceededException),
QueryLimitException(QueryLimitException),
QueryTooLargeException(QueryTooLargeException),
ReadOnlyViolationException(ReadOnlyViolationException),
S3Exception(S3Exception),
ServerShutdownException(ServerShutdownException),
StatisticsNotAvailableException(StatisticsNotAvailableException),
StreamRecordsNotFoundException(StreamRecordsNotFoundException),
ThrottlingException(ThrottlingException),
TimeLimitExceededException(TimeLimitExceededException),
TooManyRequestsException(TooManyRequestsException),
UnsupportedOperationException(UnsupportedOperationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
Raised in case of an authentication or authorization failure.
BadRequestException(BadRequestException)
Raised when a request is submitted that cannot be processed.
BulkLoadIdNotFoundException(BulkLoadIdNotFoundException)
Raised when a specified bulk-load job ID cannot be found.
CancelledByUserException(CancelledByUserException)
Raised when a user cancelled a request.
ClientTimeoutException(ClientTimeoutException)
Raised when a request timed out in the client.
ConcurrentModificationException(ConcurrentModificationException)
Raised when a request attempts to modify data that is concurrently being modified by another process.
ConstraintViolationException(ConstraintViolationException)
Raised when a value in a request field did not satisfy required constraints.
ExpiredStreamException(ExpiredStreamException)
Raised when a request attempts to access an stream that has expired.
FailureByQueryException(FailureByQueryException)
Raised when a request fails.
IllegalArgumentException(IllegalArgumentException)
Raised when an argument in a request is not supported.
InternalFailureException(InternalFailureException)
Raised when the processing of the request failed unexpectedly.
InvalidArgumentException(InvalidArgumentException)
Raised when an argument in a request has an invalid value.
InvalidNumericDataException(InvalidNumericDataException)
Raised when invalid numerical data is encountered when servicing a request.
InvalidParameterException(InvalidParameterException)
Raised when a parameter value is not valid.
LoadUrlAccessDeniedException(LoadUrlAccessDeniedException)
Raised when access is denied to a specified load URL.
MlResourceNotFoundException(MlResourceNotFoundException)
Raised when a specified machine-learning resource could not be found.
MalformedQueryException(MalformedQueryException)
Raised when a query is submitted that is syntactically incorrect or does not pass additional validation.
MemoryLimitExceededException(MemoryLimitExceededException)
Raised when a request fails because of insufficient memory resources. The request can be retried.
MethodNotAllowedException(MethodNotAllowedException)
Raised when the HTTP method used by a request is not supported by the endpoint being used.
MissingParameterException(MissingParameterException)
Raised when a required parameter is missing.
ParsingException(ParsingException)
Raised when a parsing issue is encountered.
PreconditionsFailedException(PreconditionsFailedException)
Raised when a precondition for processing a request is not satisfied.
QueryLimitExceededException(QueryLimitExceededException)
Raised when the number of active queries exceeds what the server can process. The query in question can be retried when the system is less busy.
QueryLimitException(QueryLimitException)
Raised when the size of a query exceeds the system limit.
QueryTooLargeException(QueryTooLargeException)
Raised when the body of a query is too large.
ReadOnlyViolationException(ReadOnlyViolationException)
Raised when a request attempts to write to a read-only resource.
S3Exception(S3Exception)
Raised when there is a problem accessing Amazon S3.
ServerShutdownException(ServerShutdownException)
Raised when the server shuts down while processing a request.
StatisticsNotAvailableException(StatisticsNotAvailableException)
Raised when statistics needed to satisfy a request are not available.
StreamRecordsNotFoundException(StreamRecordsNotFoundException)
Raised when stream records requested by a query cannot be found.
ThrottlingException(ThrottlingException)
Raised when the rate of requests exceeds the maximum throughput. Requests can be retried after encountering this exception.
TimeLimitExceededException(TimeLimitExceededException)
Raised when the an operation exceeds the time limit allowed for it.
TooManyRequestsException(TooManyRequestsException)
Raised when the number of requests being processed exceeds the limit.
UnsupportedOperationException(UnsupportedOperationException)
Raised when a request attempts to initiate an operation that is not supported.
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<CancelGremlinQueryError> for Error
impl From<CancelGremlinQueryError> for Error
Source§fn from(err: CancelGremlinQueryError) -> Self
fn from(err: CancelGremlinQueryError) -> Self
Source§impl From<CancelLoaderJobError> for Error
impl From<CancelLoaderJobError> for Error
Source§fn from(err: CancelLoaderJobError) -> Self
fn from(err: CancelLoaderJobError) -> Self
Source§impl From<CancelMLDataProcessingJobError> for Error
impl From<CancelMLDataProcessingJobError> for Error
Source§fn from(err: CancelMLDataProcessingJobError) -> Self
fn from(err: CancelMLDataProcessingJobError) -> Self
Source§impl From<CancelMLModelTrainingJobError> for Error
impl From<CancelMLModelTrainingJobError> for Error
Source§fn from(err: CancelMLModelTrainingJobError) -> Self
fn from(err: CancelMLModelTrainingJobError) -> Self
Source§impl From<CancelMLModelTransformJobError> for Error
impl From<CancelMLModelTransformJobError> for Error
Source§fn from(err: CancelMLModelTransformJobError) -> Self
fn from(err: CancelMLModelTransformJobError) -> Self
Source§impl From<CancelOpenCypherQueryError> for Error
impl From<CancelOpenCypherQueryError> for Error
Source§fn from(err: CancelOpenCypherQueryError) -> Self
fn from(err: CancelOpenCypherQueryError) -> Self
Source§impl From<CreateMLEndpointError> for Error
impl From<CreateMLEndpointError> for Error
Source§fn from(err: CreateMLEndpointError) -> Self
fn from(err: CreateMLEndpointError) -> Self
Source§impl From<DeleteMLEndpointError> for Error
impl From<DeleteMLEndpointError> for Error
Source§fn from(err: DeleteMLEndpointError) -> Self
fn from(err: DeleteMLEndpointError) -> Self
Source§impl From<DeletePropertygraphStatisticsError> for Error
impl From<DeletePropertygraphStatisticsError> for Error
Source§fn from(err: DeletePropertygraphStatisticsError) -> Self
fn from(err: DeletePropertygraphStatisticsError) -> Self
Source§impl From<DeleteSparqlStatisticsError> for Error
impl From<DeleteSparqlStatisticsError> for Error
Source§fn from(err: DeleteSparqlStatisticsError) -> Self
fn from(err: DeleteSparqlStatisticsError) -> Self
Source§impl From<ExecuteFastResetError> for Error
impl From<ExecuteFastResetError> for Error
Source§fn from(err: ExecuteFastResetError) -> Self
fn from(err: ExecuteFastResetError) -> Self
Source§impl From<ExecuteGremlinExplainQueryError> for Error
impl From<ExecuteGremlinExplainQueryError> for Error
Source§fn from(err: ExecuteGremlinExplainQueryError) -> Self
fn from(err: ExecuteGremlinExplainQueryError) -> Self
Source§impl From<ExecuteGremlinProfileQueryError> for Error
impl From<ExecuteGremlinProfileQueryError> for Error
Source§fn from(err: ExecuteGremlinProfileQueryError) -> Self
fn from(err: ExecuteGremlinProfileQueryError) -> Self
Source§impl From<ExecuteGremlinQueryError> for Error
impl From<ExecuteGremlinQueryError> for Error
Source§fn from(err: ExecuteGremlinQueryError) -> Self
fn from(err: ExecuteGremlinQueryError) -> Self
Source§impl From<ExecuteOpenCypherExplainQueryError> for Error
impl From<ExecuteOpenCypherExplainQueryError> for Error
Source§fn from(err: ExecuteOpenCypherExplainQueryError) -> Self
fn from(err: ExecuteOpenCypherExplainQueryError) -> Self
Source§impl From<ExecuteOpenCypherQueryError> for Error
impl From<ExecuteOpenCypherQueryError> for Error
Source§fn from(err: ExecuteOpenCypherQueryError) -> Self
fn from(err: ExecuteOpenCypherQueryError) -> Self
Source§impl From<GetEngineStatusError> for Error
impl From<GetEngineStatusError> for Error
Source§fn from(err: GetEngineStatusError) -> Self
fn from(err: GetEngineStatusError) -> Self
Source§impl From<GetGremlinQueryStatusError> for Error
impl From<GetGremlinQueryStatusError> for Error
Source§fn from(err: GetGremlinQueryStatusError) -> Self
fn from(err: GetGremlinQueryStatusError) -> Self
Source§impl From<GetLoaderJobStatusError> for Error
impl From<GetLoaderJobStatusError> for Error
Source§fn from(err: GetLoaderJobStatusError) -> Self
fn from(err: GetLoaderJobStatusError) -> Self
Source§impl From<GetMLDataProcessingJobError> for Error
impl From<GetMLDataProcessingJobError> for Error
Source§fn from(err: GetMLDataProcessingJobError) -> Self
fn from(err: GetMLDataProcessingJobError) -> Self
Source§impl From<GetMLEndpointError> for Error
impl From<GetMLEndpointError> for Error
Source§fn from(err: GetMLEndpointError) -> Self
fn from(err: GetMLEndpointError) -> Self
Source§impl From<GetMLModelTrainingJobError> for Error
impl From<GetMLModelTrainingJobError> for Error
Source§fn from(err: GetMLModelTrainingJobError) -> Self
fn from(err: GetMLModelTrainingJobError) -> Self
Source§impl From<GetMLModelTransformJobError> for Error
impl From<GetMLModelTransformJobError> for Error
Source§fn from(err: GetMLModelTransformJobError) -> Self
fn from(err: GetMLModelTransformJobError) -> Self
Source§impl From<GetOpenCypherQueryStatusError> for Error
impl From<GetOpenCypherQueryStatusError> for Error
Source§fn from(err: GetOpenCypherQueryStatusError) -> Self
fn from(err: GetOpenCypherQueryStatusError) -> Self
Source§impl From<GetPropertygraphStatisticsError> for Error
impl From<GetPropertygraphStatisticsError> for Error
Source§fn from(err: GetPropertygraphStatisticsError) -> Self
fn from(err: GetPropertygraphStatisticsError) -> Self
Source§impl From<GetPropertygraphStreamError> for Error
impl From<GetPropertygraphStreamError> for Error
Source§fn from(err: GetPropertygraphStreamError) -> Self
fn from(err: GetPropertygraphStreamError) -> Self
Source§impl From<GetPropertygraphSummaryError> for Error
impl From<GetPropertygraphSummaryError> for Error
Source§fn from(err: GetPropertygraphSummaryError) -> Self
fn from(err: GetPropertygraphSummaryError) -> Self
Source§impl From<GetRDFGraphSummaryError> for Error
impl From<GetRDFGraphSummaryError> for Error
Source§fn from(err: GetRDFGraphSummaryError) -> Self
fn from(err: GetRDFGraphSummaryError) -> Self
Source§impl From<GetSparqlStatisticsError> for Error
impl From<GetSparqlStatisticsError> for Error
Source§fn from(err: GetSparqlStatisticsError) -> Self
fn from(err: GetSparqlStatisticsError) -> Self
Source§impl From<GetSparqlStreamError> for Error
impl From<GetSparqlStreamError> for Error
Source§fn from(err: GetSparqlStreamError) -> Self
fn from(err: GetSparqlStreamError) -> Self
Source§impl From<ListGremlinQueriesError> for Error
impl From<ListGremlinQueriesError> for Error
Source§fn from(err: ListGremlinQueriesError) -> Self
fn from(err: ListGremlinQueriesError) -> Self
Source§impl From<ListLoaderJobsError> for Error
impl From<ListLoaderJobsError> for Error
Source§fn from(err: ListLoaderJobsError) -> Self
fn from(err: ListLoaderJobsError) -> Self
Source§impl From<ListMLDataProcessingJobsError> for Error
impl From<ListMLDataProcessingJobsError> for Error
Source§fn from(err: ListMLDataProcessingJobsError) -> Self
fn from(err: ListMLDataProcessingJobsError) -> Self
Source§impl From<ListMLEndpointsError> for Error
impl From<ListMLEndpointsError> for Error
Source§fn from(err: ListMLEndpointsError) -> Self
fn from(err: ListMLEndpointsError) -> Self
Source§impl From<ListMLModelTrainingJobsError> for Error
impl From<ListMLModelTrainingJobsError> for Error
Source§fn from(err: ListMLModelTrainingJobsError) -> Self
fn from(err: ListMLModelTrainingJobsError) -> Self
Source§impl From<ListMLModelTransformJobsError> for Error
impl From<ListMLModelTransformJobsError> for Error
Source§fn from(err: ListMLModelTransformJobsError) -> Self
fn from(err: ListMLModelTransformJobsError) -> Self
Source§impl From<ListOpenCypherQueriesError> for Error
impl From<ListOpenCypherQueriesError> for Error
Source§fn from(err: ListOpenCypherQueriesError) -> Self
fn from(err: ListOpenCypherQueriesError) -> Self
Source§impl From<ManagePropertygraphStatisticsError> for Error
impl From<ManagePropertygraphStatisticsError> for Error
Source§fn from(err: ManagePropertygraphStatisticsError) -> Self
fn from(err: ManagePropertygraphStatisticsError) -> Self
Source§impl From<ManageSparqlStatisticsError> for Error
impl From<ManageSparqlStatisticsError> for Error
Source§fn from(err: ManageSparqlStatisticsError) -> Self
fn from(err: ManageSparqlStatisticsError) -> Self
Source§impl<R> From<SdkError<CancelGremlinQueryError, R>> for Error
impl<R> From<SdkError<CancelGremlinQueryError, R>> for Error
Source§fn from(err: SdkError<CancelGremlinQueryError, R>) -> Self
fn from(err: SdkError<CancelGremlinQueryError, R>) -> Self
Source§impl<R> From<SdkError<CancelLoaderJobError, R>> for Error
impl<R> From<SdkError<CancelLoaderJobError, R>> for Error
Source§fn from(err: SdkError<CancelLoaderJobError, R>) -> Self
fn from(err: SdkError<CancelLoaderJobError, R>) -> Self
Source§impl<R> From<SdkError<CancelMLDataProcessingJobError, R>> for Error
impl<R> From<SdkError<CancelMLDataProcessingJobError, R>> for Error
Source§fn from(err: SdkError<CancelMLDataProcessingJobError, R>) -> Self
fn from(err: SdkError<CancelMLDataProcessingJobError, R>) -> Self
Source§impl<R> From<SdkError<CancelMLModelTrainingJobError, R>> for Error
impl<R> From<SdkError<CancelMLModelTrainingJobError, R>> for Error
Source§fn from(err: SdkError<CancelMLModelTrainingJobError, R>) -> Self
fn from(err: SdkError<CancelMLModelTrainingJobError, R>) -> Self
Source§impl<R> From<SdkError<CancelMLModelTransformJobError, R>> for Error
impl<R> From<SdkError<CancelMLModelTransformJobError, R>> for Error
Source§fn from(err: SdkError<CancelMLModelTransformJobError, R>) -> Self
fn from(err: SdkError<CancelMLModelTransformJobError, R>) -> Self
Source§impl<R> From<SdkError<CancelOpenCypherQueryError, R>> for Error
impl<R> From<SdkError<CancelOpenCypherQueryError, R>> for Error
Source§fn from(err: SdkError<CancelOpenCypherQueryError, R>) -> Self
fn from(err: SdkError<CancelOpenCypherQueryError, R>) -> Self
Source§impl<R> From<SdkError<CreateMLEndpointError, R>> for Error
impl<R> From<SdkError<CreateMLEndpointError, R>> for Error
Source§fn from(err: SdkError<CreateMLEndpointError, R>) -> Self
fn from(err: SdkError<CreateMLEndpointError, R>) -> Self
Source§impl<R> From<SdkError<DeleteMLEndpointError, R>> for Error
impl<R> From<SdkError<DeleteMLEndpointError, R>> for Error
Source§fn from(err: SdkError<DeleteMLEndpointError, R>) -> Self
fn from(err: SdkError<DeleteMLEndpointError, R>) -> Self
Source§impl<R> From<SdkError<DeletePropertygraphStatisticsError, R>> for Error
impl<R> From<SdkError<DeletePropertygraphStatisticsError, R>> for Error
Source§fn from(err: SdkError<DeletePropertygraphStatisticsError, R>) -> Self
fn from(err: SdkError<DeletePropertygraphStatisticsError, R>) -> Self
Source§impl<R> From<SdkError<DeleteSparqlStatisticsError, R>> for Error
impl<R> From<SdkError<DeleteSparqlStatisticsError, R>> for Error
Source§fn from(err: SdkError<DeleteSparqlStatisticsError, R>) -> Self
fn from(err: SdkError<DeleteSparqlStatisticsError, R>) -> Self
Source§impl<R> From<SdkError<ExecuteFastResetError, R>> for Error
impl<R> From<SdkError<ExecuteFastResetError, R>> for Error
Source§fn from(err: SdkError<ExecuteFastResetError, R>) -> Self
fn from(err: SdkError<ExecuteFastResetError, R>) -> Self
Source§impl<R> From<SdkError<ExecuteGremlinExplainQueryError, R>> for Error
impl<R> From<SdkError<ExecuteGremlinExplainQueryError, R>> for Error
Source§fn from(err: SdkError<ExecuteGremlinExplainQueryError, R>) -> Self
fn from(err: SdkError<ExecuteGremlinExplainQueryError, R>) -> Self
Source§impl<R> From<SdkError<ExecuteGremlinProfileQueryError, R>> for Error
impl<R> From<SdkError<ExecuteGremlinProfileQueryError, R>> for Error
Source§fn from(err: SdkError<ExecuteGremlinProfileQueryError, R>) -> Self
fn from(err: SdkError<ExecuteGremlinProfileQueryError, R>) -> Self
Source§impl<R> From<SdkError<ExecuteGremlinQueryError, R>> for Error
impl<R> From<SdkError<ExecuteGremlinQueryError, R>> for Error
Source§fn from(err: SdkError<ExecuteGremlinQueryError, R>) -> Self
fn from(err: SdkError<ExecuteGremlinQueryError, R>) -> Self
Source§impl<R> From<SdkError<ExecuteOpenCypherExplainQueryError, R>> for Error
impl<R> From<SdkError<ExecuteOpenCypherExplainQueryError, R>> for Error
Source§fn from(err: SdkError<ExecuteOpenCypherExplainQueryError, R>) -> Self
fn from(err: SdkError<ExecuteOpenCypherExplainQueryError, R>) -> Self
Source§impl<R> From<SdkError<ExecuteOpenCypherQueryError, R>> for Error
impl<R> From<SdkError<ExecuteOpenCypherQueryError, R>> for Error
Source§fn from(err: SdkError<ExecuteOpenCypherQueryError, R>) -> Self
fn from(err: SdkError<ExecuteOpenCypherQueryError, R>) -> Self
Source§impl<R> From<SdkError<GetEngineStatusError, R>> for Error
impl<R> From<SdkError<GetEngineStatusError, R>> for Error
Source§fn from(err: SdkError<GetEngineStatusError, R>) -> Self
fn from(err: SdkError<GetEngineStatusError, R>) -> Self
Source§impl<R> From<SdkError<GetGremlinQueryStatusError, R>> for Error
impl<R> From<SdkError<GetGremlinQueryStatusError, R>> for Error
Source§fn from(err: SdkError<GetGremlinQueryStatusError, R>) -> Self
fn from(err: SdkError<GetGremlinQueryStatusError, R>) -> Self
Source§impl<R> From<SdkError<GetLoaderJobStatusError, R>> for Error
impl<R> From<SdkError<GetLoaderJobStatusError, R>> for Error
Source§fn from(err: SdkError<GetLoaderJobStatusError, R>) -> Self
fn from(err: SdkError<GetLoaderJobStatusError, R>) -> Self
Source§impl<R> From<SdkError<GetMLDataProcessingJobError, R>> for Error
impl<R> From<SdkError<GetMLDataProcessingJobError, R>> for Error
Source§fn from(err: SdkError<GetMLDataProcessingJobError, R>) -> Self
fn from(err: SdkError<GetMLDataProcessingJobError, R>) -> Self
Source§impl<R> From<SdkError<GetMLEndpointError, R>> for Error
impl<R> From<SdkError<GetMLEndpointError, R>> for Error
Source§fn from(err: SdkError<GetMLEndpointError, R>) -> Self
fn from(err: SdkError<GetMLEndpointError, R>) -> Self
Source§impl<R> From<SdkError<GetMLModelTrainingJobError, R>> for Error
impl<R> From<SdkError<GetMLModelTrainingJobError, R>> for Error
Source§fn from(err: SdkError<GetMLModelTrainingJobError, R>) -> Self
fn from(err: SdkError<GetMLModelTrainingJobError, R>) -> Self
Source§impl<R> From<SdkError<GetMLModelTransformJobError, R>> for Error
impl<R> From<SdkError<GetMLModelTransformJobError, R>> for Error
Source§fn from(err: SdkError<GetMLModelTransformJobError, R>) -> Self
fn from(err: SdkError<GetMLModelTransformJobError, R>) -> Self
Source§impl<R> From<SdkError<GetOpenCypherQueryStatusError, R>> for Error
impl<R> From<SdkError<GetOpenCypherQueryStatusError, R>> for Error
Source§fn from(err: SdkError<GetOpenCypherQueryStatusError, R>) -> Self
fn from(err: SdkError<GetOpenCypherQueryStatusError, R>) -> Self
Source§impl<R> From<SdkError<GetPropertygraphStatisticsError, R>> for Error
impl<R> From<SdkError<GetPropertygraphStatisticsError, R>> for Error
Source§fn from(err: SdkError<GetPropertygraphStatisticsError, R>) -> Self
fn from(err: SdkError<GetPropertygraphStatisticsError, R>) -> Self
Source§impl<R> From<SdkError<GetPropertygraphStreamError, R>> for Error
impl<R> From<SdkError<GetPropertygraphStreamError, R>> for Error
Source§fn from(err: SdkError<GetPropertygraphStreamError, R>) -> Self
fn from(err: SdkError<GetPropertygraphStreamError, R>) -> Self
Source§impl<R> From<SdkError<GetPropertygraphSummaryError, R>> for Error
impl<R> From<SdkError<GetPropertygraphSummaryError, R>> for Error
Source§fn from(err: SdkError<GetPropertygraphSummaryError, R>) -> Self
fn from(err: SdkError<GetPropertygraphSummaryError, R>) -> Self
Source§impl<R> From<SdkError<GetRDFGraphSummaryError, R>> for Error
impl<R> From<SdkError<GetRDFGraphSummaryError, R>> for Error
Source§fn from(err: SdkError<GetRDFGraphSummaryError, R>) -> Self
fn from(err: SdkError<GetRDFGraphSummaryError, R>) -> Self
Source§impl<R> From<SdkError<GetSparqlStatisticsError, R>> for Error
impl<R> From<SdkError<GetSparqlStatisticsError, R>> for Error
Source§fn from(err: SdkError<GetSparqlStatisticsError, R>) -> Self
fn from(err: SdkError<GetSparqlStatisticsError, R>) -> Self
Source§impl<R> From<SdkError<GetSparqlStreamError, R>> for Error
impl<R> From<SdkError<GetSparqlStreamError, R>> for Error
Source§fn from(err: SdkError<GetSparqlStreamError, R>) -> Self
fn from(err: SdkError<GetSparqlStreamError, R>) -> Self
Source§impl<R> From<SdkError<ListGremlinQueriesError, R>> for Error
impl<R> From<SdkError<ListGremlinQueriesError, R>> for Error
Source§fn from(err: SdkError<ListGremlinQueriesError, R>) -> Self
fn from(err: SdkError<ListGremlinQueriesError, R>) -> Self
Source§impl<R> From<SdkError<ListLoaderJobsError, R>> for Error
impl<R> From<SdkError<ListLoaderJobsError, R>> for Error
Source§fn from(err: SdkError<ListLoaderJobsError, R>) -> Self
fn from(err: SdkError<ListLoaderJobsError, R>) -> Self
Source§impl<R> From<SdkError<ListMLDataProcessingJobsError, R>> for Error
impl<R> From<SdkError<ListMLDataProcessingJobsError, R>> for Error
Source§fn from(err: SdkError<ListMLDataProcessingJobsError, R>) -> Self
fn from(err: SdkError<ListMLDataProcessingJobsError, R>) -> Self
Source§impl<R> From<SdkError<ListMLEndpointsError, R>> for Error
impl<R> From<SdkError<ListMLEndpointsError, R>> for Error
Source§fn from(err: SdkError<ListMLEndpointsError, R>) -> Self
fn from(err: SdkError<ListMLEndpointsError, R>) -> Self
Source§impl<R> From<SdkError<ListMLModelTrainingJobsError, R>> for Error
impl<R> From<SdkError<ListMLModelTrainingJobsError, R>> for Error
Source§fn from(err: SdkError<ListMLModelTrainingJobsError, R>) -> Self
fn from(err: SdkError<ListMLModelTrainingJobsError, R>) -> Self
Source§impl<R> From<SdkError<ListMLModelTransformJobsError, R>> for Error
impl<R> From<SdkError<ListMLModelTransformJobsError, R>> for Error
Source§fn from(err: SdkError<ListMLModelTransformJobsError, R>) -> Self
fn from(err: SdkError<ListMLModelTransformJobsError, R>) -> Self
Source§impl<R> From<SdkError<ListOpenCypherQueriesError, R>> for Error
impl<R> From<SdkError<ListOpenCypherQueriesError, R>> for Error
Source§fn from(err: SdkError<ListOpenCypherQueriesError, R>) -> Self
fn from(err: SdkError<ListOpenCypherQueriesError, R>) -> Self
Source§impl<R> From<SdkError<ManagePropertygraphStatisticsError, R>> for Error
impl<R> From<SdkError<ManagePropertygraphStatisticsError, R>> for Error
Source§fn from(err: SdkError<ManagePropertygraphStatisticsError, R>) -> Self
fn from(err: SdkError<ManagePropertygraphStatisticsError, R>) -> Self
Source§impl<R> From<SdkError<ManageSparqlStatisticsError, R>> for Error
impl<R> From<SdkError<ManageSparqlStatisticsError, R>> for Error
Source§fn from(err: SdkError<ManageSparqlStatisticsError, R>) -> Self
fn from(err: SdkError<ManageSparqlStatisticsError, R>) -> Self
Source§impl<R> From<SdkError<StartLoaderJobError, R>> for Error
impl<R> From<SdkError<StartLoaderJobError, R>> for Error
Source§fn from(err: SdkError<StartLoaderJobError, R>) -> Self
fn from(err: SdkError<StartLoaderJobError, R>) -> Self
Source§impl<R> From<SdkError<StartMLDataProcessingJobError, R>> for Error
impl<R> From<SdkError<StartMLDataProcessingJobError, R>> for Error
Source§fn from(err: SdkError<StartMLDataProcessingJobError, R>) -> Self
fn from(err: SdkError<StartMLDataProcessingJobError, R>) -> Self
Source§impl<R> From<SdkError<StartMLModelTrainingJobError, R>> for Error
impl<R> From<SdkError<StartMLModelTrainingJobError, R>> for Error
Source§fn from(err: SdkError<StartMLModelTrainingJobError, R>) -> Self
fn from(err: SdkError<StartMLModelTrainingJobError, R>) -> Self
Source§impl<R> From<SdkError<StartMLModelTransformJobError, R>> for Error
impl<R> From<SdkError<StartMLModelTransformJobError, R>> for Error
Source§fn from(err: SdkError<StartMLModelTransformJobError, R>) -> Self
fn from(err: SdkError<StartMLModelTransformJobError, R>) -> Self
Source§impl From<StartLoaderJobError> for Error
impl From<StartLoaderJobError> for Error
Source§fn from(err: StartLoaderJobError) -> Self
fn from(err: StartLoaderJobError) -> Self
Source§impl From<StartMLDataProcessingJobError> for Error
impl From<StartMLDataProcessingJobError> for Error
Source§fn from(err: StartMLDataProcessingJobError) -> Self
fn from(err: StartMLDataProcessingJobError) -> Self
Source§impl From<StartMLModelTrainingJobError> for Error
impl From<StartMLModelTrainingJobError> for Error
Source§fn from(err: StartMLModelTrainingJobError) -> Self
fn from(err: StartMLModelTrainingJobError) -> Self
Source§impl From<StartMLModelTransformJobError> for Error
impl From<StartMLModelTransformJobError> for Error
Source§fn from(err: StartMLModelTransformJobError) -> Self
fn from(err: StartMLModelTransformJobError) -> 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);