#[non_exhaustive]pub enum Error {
Show 24 variants
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
HumanLoopQuotaExceededException(HumanLoopQuotaExceededException),
IdempotentParameterMismatchException(IdempotentParameterMismatchException),
ImageTooLargeException(ImageTooLargeException),
InternalServerError(InternalServerError),
InvalidImageFormatException(InvalidImageFormatException),
InvalidManifestException(InvalidManifestException),
InvalidPaginationTokenException(InvalidPaginationTokenException),
InvalidParameterException(InvalidParameterException),
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException),
InvalidS3ObjectException(InvalidS3ObjectException),
LimitExceededException(LimitExceededException),
MalformedPolicyDocumentException(MalformedPolicyDocumentException),
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException),
ResourceAlreadyExistsException(ResourceAlreadyExistsException),
ResourceInUseException(ResourceInUseException),
ResourceNotFoundException(ResourceNotFoundException),
ResourceNotReadyException(ResourceNotReadyException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
SessionNotFoundException(SessionNotFoundException),
ThrottlingException(ThrottlingException),
VideoTooLargeException(VideoTooLargeException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You are not authorized to perform the action.
ConflictException(ConflictException)
A User with the same Id already exists within the collection, or the update or deletion of the User caused an inconsistent state. **
HumanLoopQuotaExceededException(HumanLoopQuotaExceededException)
The number of in-progress human reviews you have has exceeded the number allowed.
IdempotentParameterMismatchException(IdempotentParameterMismatchException)
A ClientRequestToken
input parameter was reused with an operation, but at least one of the other input parameters is different from the previous call to the operation.
ImageTooLargeException(ImageTooLargeException)
The input image size exceeds the allowed limit. If you are calling DetectProtectiveEquipment, the image size or resolution exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide.
InternalServerError(InternalServerError)
Amazon Rekognition experienced a service issue. Try your call again.
InvalidImageFormatException(InvalidImageFormatException)
The provided image format is not supported.
InvalidManifestException(InvalidManifestException)
Indicates that a provided manifest file is empty or larger than the allowed limit.
InvalidPaginationTokenException(InvalidPaginationTokenException)
Pagination token in the request is not valid.
InvalidParameterException(InvalidParameterException)
Input parameter violated a constraint. Validate your parameter before calling the API operation again.
InvalidPolicyRevisionIdException(InvalidPolicyRevisionIdException)
The supplied revision id for the project policy is invalid.
InvalidS3ObjectException(InvalidS3ObjectException)
Amazon Rekognition is unable to access the S3 object specified in the request.
LimitExceededException(LimitExceededException)
An Amazon Rekognition service limit was exceeded. For example, if you start too many jobs concurrently, subsequent calls to start operations (ex: StartLabelDetection
) will raise a LimitExceededException
exception (HTTP status code: 400) until the number of concurrently running jobs is below the Amazon Rekognition service limit.
MalformedPolicyDocumentException(MalformedPolicyDocumentException)
The format of the project policy document that you supplied to PutProjectPolicy
is incorrect.
ProvisionedThroughputExceededException(ProvisionedThroughputExceededException)
The number of requests exceeded your throughput limit. If you want to increase this limit, contact Amazon Rekognition.
ResourceAlreadyExistsException(ResourceAlreadyExistsException)
A resource with the specified ID already exists.
ResourceInUseException(ResourceInUseException)
The specified resource is already being used.
ResourceNotFoundException(ResourceNotFoundException)
The resource specified in the request cannot be found.
ResourceNotReadyException(ResourceNotReadyException)
The requested resource isn't ready. For example, this exception occurs when you call DetectCustomLabels
with a model version that isn't deployed.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The size of the collection exceeds the allowed limit. For more information, see Guidelines and quotas in Amazon Rekognition in the Amazon Rekognition Developer Guide.
SessionNotFoundException(SessionNotFoundException)
Occurs when a given sessionId is not found.
ThrottlingException(ThrottlingException)
Amazon Rekognition is temporarily unable to process the request. Try your call again.
VideoTooLargeException(VideoTooLargeException)
The file size or duration of the supplied media is too large. The maximum file size is 10GB. The maximum duration is 6 hours.
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<AssociateFacesError> for Error
impl From<AssociateFacesError> for Error
Source§fn from(err: AssociateFacesError) -> Self
fn from(err: AssociateFacesError) -> Self
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<CompareFacesError> for Error
impl From<CompareFacesError> for Error
Source§fn from(err: CompareFacesError) -> Self
fn from(err: CompareFacesError) -> Self
Source§impl From<CopyProjectVersionError> for Error
impl From<CopyProjectVersionError> for Error
Source§fn from(err: CopyProjectVersionError) -> Self
fn from(err: CopyProjectVersionError) -> Self
Source§impl From<CreateCollectionError> for Error
impl From<CreateCollectionError> for Error
Source§fn from(err: CreateCollectionError) -> Self
fn from(err: CreateCollectionError) -> 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<CreateFaceLivenessSessionError> for Error
impl From<CreateFaceLivenessSessionError> for Error
Source§fn from(err: CreateFaceLivenessSessionError) -> Self
fn from(err: CreateFaceLivenessSessionError) -> Self
Source§impl From<CreateProjectError> for Error
impl From<CreateProjectError> for Error
Source§fn from(err: CreateProjectError) -> Self
fn from(err: CreateProjectError) -> Self
Source§impl From<CreateProjectVersionError> for Error
impl From<CreateProjectVersionError> for Error
Source§fn from(err: CreateProjectVersionError) -> Self
fn from(err: CreateProjectVersionError) -> Self
Source§impl From<CreateStreamProcessorError> for Error
impl From<CreateStreamProcessorError> for Error
Source§fn from(err: CreateStreamProcessorError) -> Self
fn from(err: CreateStreamProcessorError) -> Self
Source§impl From<CreateUserError> for Error
impl From<CreateUserError> for Error
Source§fn from(err: CreateUserError) -> Self
fn from(err: CreateUserError) -> Self
Source§impl From<DeleteCollectionError> for Error
impl From<DeleteCollectionError> for Error
Source§fn from(err: DeleteCollectionError) -> Self
fn from(err: DeleteCollectionError) -> 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<DeleteFacesError> for Error
impl From<DeleteFacesError> for Error
Source§fn from(err: DeleteFacesError) -> Self
fn from(err: DeleteFacesError) -> Self
Source§impl From<DeleteProjectError> for Error
impl From<DeleteProjectError> for Error
Source§fn from(err: DeleteProjectError) -> Self
fn from(err: DeleteProjectError) -> Self
Source§impl From<DeleteProjectPolicyError> for Error
impl From<DeleteProjectPolicyError> for Error
Source§fn from(err: DeleteProjectPolicyError) -> Self
fn from(err: DeleteProjectPolicyError) -> Self
Source§impl From<DeleteProjectVersionError> for Error
impl From<DeleteProjectVersionError> for Error
Source§fn from(err: DeleteProjectVersionError) -> Self
fn from(err: DeleteProjectVersionError) -> Self
Source§impl From<DeleteStreamProcessorError> for Error
impl From<DeleteStreamProcessorError> for Error
Source§fn from(err: DeleteStreamProcessorError) -> Self
fn from(err: DeleteStreamProcessorError) -> Self
Source§impl From<DeleteUserError> for Error
impl From<DeleteUserError> for Error
Source§fn from(err: DeleteUserError) -> Self
fn from(err: DeleteUserError) -> Self
Source§impl From<DescribeCollectionError> for Error
impl From<DescribeCollectionError> for Error
Source§fn from(err: DescribeCollectionError) -> Self
fn from(err: DescribeCollectionError) -> 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<DescribeProjectVersionsError> for Error
impl From<DescribeProjectVersionsError> for Error
Source§fn from(err: DescribeProjectVersionsError) -> Self
fn from(err: DescribeProjectVersionsError) -> Self
Source§impl From<DescribeProjectsError> for Error
impl From<DescribeProjectsError> for Error
Source§fn from(err: DescribeProjectsError) -> Self
fn from(err: DescribeProjectsError) -> Self
Source§impl From<DescribeStreamProcessorError> for Error
impl From<DescribeStreamProcessorError> for Error
Source§fn from(err: DescribeStreamProcessorError) -> Self
fn from(err: DescribeStreamProcessorError) -> Self
Source§impl From<DetectCustomLabelsError> for Error
impl From<DetectCustomLabelsError> for Error
Source§fn from(err: DetectCustomLabelsError) -> Self
fn from(err: DetectCustomLabelsError) -> Self
Source§impl From<DetectFacesError> for Error
impl From<DetectFacesError> for Error
Source§fn from(err: DetectFacesError) -> Self
fn from(err: DetectFacesError) -> Self
Source§impl From<DetectLabelsError> for Error
impl From<DetectLabelsError> for Error
Source§fn from(err: DetectLabelsError) -> Self
fn from(err: DetectLabelsError) -> Self
Source§impl From<DetectModerationLabelsError> for Error
impl From<DetectModerationLabelsError> for Error
Source§fn from(err: DetectModerationLabelsError) -> Self
fn from(err: DetectModerationLabelsError) -> Self
Source§impl From<DetectProtectiveEquipmentError> for Error
impl From<DetectProtectiveEquipmentError> for Error
Source§fn from(err: DetectProtectiveEquipmentError) -> Self
fn from(err: DetectProtectiveEquipmentError) -> Self
Source§impl From<DetectTextError> for Error
impl From<DetectTextError> for Error
Source§fn from(err: DetectTextError) -> Self
fn from(err: DetectTextError) -> Self
Source§impl From<DisassociateFacesError> for Error
impl From<DisassociateFacesError> for Error
Source§fn from(err: DisassociateFacesError) -> Self
fn from(err: DisassociateFacesError) -> Self
Source§impl From<DistributeDatasetEntriesError> for Error
impl From<DistributeDatasetEntriesError> for Error
Source§fn from(err: DistributeDatasetEntriesError) -> Self
fn from(err: DistributeDatasetEntriesError) -> Self
Source§impl From<GetCelebrityInfoError> for Error
impl From<GetCelebrityInfoError> for Error
Source§fn from(err: GetCelebrityInfoError) -> Self
fn from(err: GetCelebrityInfoError) -> Self
Source§impl From<GetCelebrityRecognitionError> for Error
impl From<GetCelebrityRecognitionError> for Error
Source§fn from(err: GetCelebrityRecognitionError) -> Self
fn from(err: GetCelebrityRecognitionError) -> Self
Source§impl From<GetContentModerationError> for Error
impl From<GetContentModerationError> for Error
Source§fn from(err: GetContentModerationError) -> Self
fn from(err: GetContentModerationError) -> Self
Source§impl From<GetFaceDetectionError> for Error
impl From<GetFaceDetectionError> for Error
Source§fn from(err: GetFaceDetectionError) -> Self
fn from(err: GetFaceDetectionError) -> Self
Source§impl From<GetFaceLivenessSessionResultsError> for Error
impl From<GetFaceLivenessSessionResultsError> for Error
Source§fn from(err: GetFaceLivenessSessionResultsError) -> Self
fn from(err: GetFaceLivenessSessionResultsError) -> Self
Source§impl From<GetFaceSearchError> for Error
impl From<GetFaceSearchError> for Error
Source§fn from(err: GetFaceSearchError) -> Self
fn from(err: GetFaceSearchError) -> Self
Source§impl From<GetLabelDetectionError> for Error
impl From<GetLabelDetectionError> for Error
Source§fn from(err: GetLabelDetectionError) -> Self
fn from(err: GetLabelDetectionError) -> Self
Source§impl From<GetMediaAnalysisJobError> for Error
impl From<GetMediaAnalysisJobError> for Error
Source§fn from(err: GetMediaAnalysisJobError) -> Self
fn from(err: GetMediaAnalysisJobError) -> Self
Source§impl From<GetPersonTrackingError> for Error
impl From<GetPersonTrackingError> for Error
Source§fn from(err: GetPersonTrackingError) -> Self
fn from(err: GetPersonTrackingError) -> Self
Source§impl From<GetSegmentDetectionError> for Error
impl From<GetSegmentDetectionError> for Error
Source§fn from(err: GetSegmentDetectionError) -> Self
fn from(err: GetSegmentDetectionError) -> Self
Source§impl From<GetTextDetectionError> for Error
impl From<GetTextDetectionError> for Error
Source§fn from(err: GetTextDetectionError) -> Self
fn from(err: GetTextDetectionError) -> Self
Source§impl From<IndexFacesError> for Error
impl From<IndexFacesError> for Error
Source§fn from(err: IndexFacesError) -> Self
fn from(err: IndexFacesError) -> Self
Source§impl From<ListCollectionsError> for Error
impl From<ListCollectionsError> for Error
Source§fn from(err: ListCollectionsError) -> Self
fn from(err: ListCollectionsError) -> Self
Source§impl From<ListDatasetEntriesError> for Error
impl From<ListDatasetEntriesError> for Error
Source§fn from(err: ListDatasetEntriesError) -> Self
fn from(err: ListDatasetEntriesError) -> Self
Source§impl From<ListDatasetLabelsError> for Error
impl From<ListDatasetLabelsError> for Error
Source§fn from(err: ListDatasetLabelsError) -> Self
fn from(err: ListDatasetLabelsError) -> Self
Source§impl From<ListFacesError> for Error
impl From<ListFacesError> for Error
Source§fn from(err: ListFacesError) -> Self
fn from(err: ListFacesError) -> Self
Source§impl From<ListMediaAnalysisJobsError> for Error
impl From<ListMediaAnalysisJobsError> for Error
Source§fn from(err: ListMediaAnalysisJobsError) -> Self
fn from(err: ListMediaAnalysisJobsError) -> Self
Source§impl From<ListProjectPoliciesError> for Error
impl From<ListProjectPoliciesError> for Error
Source§fn from(err: ListProjectPoliciesError) -> Self
fn from(err: ListProjectPoliciesError) -> Self
Source§impl From<ListStreamProcessorsError> for Error
impl From<ListStreamProcessorsError> for Error
Source§fn from(err: ListStreamProcessorsError) -> Self
fn from(err: ListStreamProcessorsError) -> 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<ListUsersError> for Error
impl From<ListUsersError> for Error
Source§fn from(err: ListUsersError) -> Self
fn from(err: ListUsersError) -> Self
Source§impl From<PutProjectPolicyError> for Error
impl From<PutProjectPolicyError> for Error
Source§fn from(err: PutProjectPolicyError) -> Self
fn from(err: PutProjectPolicyError) -> Self
Source§impl From<RecognizeCelebritiesError> for Error
impl From<RecognizeCelebritiesError> for Error
Source§fn from(err: RecognizeCelebritiesError) -> Self
fn from(err: RecognizeCelebritiesError) -> Self
Source§impl<R> From<SdkError<AssociateFacesError, R>> for Error
impl<R> From<SdkError<AssociateFacesError, R>> for Error
Source§fn from(err: SdkError<AssociateFacesError, R>) -> Self
fn from(err: SdkError<AssociateFacesError, R>) -> Self
Source§impl<R> From<SdkError<CompareFacesError, R>> for Error
impl<R> From<SdkError<CompareFacesError, R>> for Error
Source§fn from(err: SdkError<CompareFacesError, R>) -> Self
fn from(err: SdkError<CompareFacesError, R>) -> Self
Source§impl<R> From<SdkError<CopyProjectVersionError, R>> for Error
impl<R> From<SdkError<CopyProjectVersionError, R>> for Error
Source§fn from(err: SdkError<CopyProjectVersionError, R>) -> Self
fn from(err: SdkError<CopyProjectVersionError, R>) -> Self
Source§impl<R> From<SdkError<CreateCollectionError, R>> for Error
impl<R> From<SdkError<CreateCollectionError, R>> for Error
Source§fn from(err: SdkError<CreateCollectionError, R>) -> Self
fn from(err: SdkError<CreateCollectionError, 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<CreateFaceLivenessSessionError, R>> for Error
impl<R> From<SdkError<CreateFaceLivenessSessionError, R>> for Error
Source§fn from(err: SdkError<CreateFaceLivenessSessionError, R>) -> Self
fn from(err: SdkError<CreateFaceLivenessSessionError, R>) -> Self
Source§impl<R> From<SdkError<CreateProjectError, R>> for Error
impl<R> From<SdkError<CreateProjectError, R>> for Error
Source§fn from(err: SdkError<CreateProjectError, R>) -> Self
fn from(err: SdkError<CreateProjectError, R>) -> Self
Source§impl<R> From<SdkError<CreateProjectVersionError, R>> for Error
impl<R> From<SdkError<CreateProjectVersionError, R>> for Error
Source§fn from(err: SdkError<CreateProjectVersionError, R>) -> Self
fn from(err: SdkError<CreateProjectVersionError, R>) -> Self
Source§impl<R> From<SdkError<CreateStreamProcessorError, R>> for Error
impl<R> From<SdkError<CreateStreamProcessorError, R>> for Error
Source§fn from(err: SdkError<CreateStreamProcessorError, R>) -> Self
fn from(err: SdkError<CreateStreamProcessorError, R>) -> Self
Source§impl<R> From<SdkError<CreateUserError, R>> for Error
impl<R> From<SdkError<CreateUserError, R>> for Error
Source§fn from(err: SdkError<CreateUserError, R>) -> Self
fn from(err: SdkError<CreateUserError, R>) -> Self
Source§impl<R> From<SdkError<DeleteCollectionError, R>> for Error
impl<R> From<SdkError<DeleteCollectionError, R>> for Error
Source§fn from(err: SdkError<DeleteCollectionError, R>) -> Self
fn from(err: SdkError<DeleteCollectionError, 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<DeleteFacesError, R>> for Error
impl<R> From<SdkError<DeleteFacesError, R>> for Error
Source§fn from(err: SdkError<DeleteFacesError, R>) -> Self
fn from(err: SdkError<DeleteFacesError, R>) -> Self
Source§impl<R> From<SdkError<DeleteProjectError, R>> for Error
impl<R> From<SdkError<DeleteProjectError, R>> for Error
Source§fn from(err: SdkError<DeleteProjectError, R>) -> Self
fn from(err: SdkError<DeleteProjectError, R>) -> Self
Source§impl<R> From<SdkError<DeleteProjectPolicyError, R>> for Error
impl<R> From<SdkError<DeleteProjectPolicyError, R>> for Error
Source§fn from(err: SdkError<DeleteProjectPolicyError, R>) -> Self
fn from(err: SdkError<DeleteProjectPolicyError, R>) -> Self
Source§impl<R> From<SdkError<DeleteProjectVersionError, R>> for Error
impl<R> From<SdkError<DeleteProjectVersionError, R>> for Error
Source§fn from(err: SdkError<DeleteProjectVersionError, R>) -> Self
fn from(err: SdkError<DeleteProjectVersionError, R>) -> Self
Source§impl<R> From<SdkError<DeleteStreamProcessorError, R>> for Error
impl<R> From<SdkError<DeleteStreamProcessorError, R>> for Error
Source§fn from(err: SdkError<DeleteStreamProcessorError, R>) -> Self
fn from(err: SdkError<DeleteStreamProcessorError, R>) -> Self
Source§impl<R> From<SdkError<DeleteUserError, R>> for Error
impl<R> From<SdkError<DeleteUserError, R>> for Error
Source§fn from(err: SdkError<DeleteUserError, R>) -> Self
fn from(err: SdkError<DeleteUserError, R>) -> Self
Source§impl<R> From<SdkError<DescribeCollectionError, R>> for Error
impl<R> From<SdkError<DescribeCollectionError, R>> for Error
Source§fn from(err: SdkError<DescribeCollectionError, R>) -> Self
fn from(err: SdkError<DescribeCollectionError, 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<DescribeProjectVersionsError, R>> for Error
impl<R> From<SdkError<DescribeProjectVersionsError, R>> for Error
Source§fn from(err: SdkError<DescribeProjectVersionsError, R>) -> Self
fn from(err: SdkError<DescribeProjectVersionsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeProjectsError, R>> for Error
impl<R> From<SdkError<DescribeProjectsError, R>> for Error
Source§fn from(err: SdkError<DescribeProjectsError, R>) -> Self
fn from(err: SdkError<DescribeProjectsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeStreamProcessorError, R>> for Error
impl<R> From<SdkError<DescribeStreamProcessorError, R>> for Error
Source§fn from(err: SdkError<DescribeStreamProcessorError, R>) -> Self
fn from(err: SdkError<DescribeStreamProcessorError, R>) -> Self
Source§impl<R> From<SdkError<DetectCustomLabelsError, R>> for Error
impl<R> From<SdkError<DetectCustomLabelsError, R>> for Error
Source§fn from(err: SdkError<DetectCustomLabelsError, R>) -> Self
fn from(err: SdkError<DetectCustomLabelsError, R>) -> Self
Source§impl<R> From<SdkError<DetectFacesError, R>> for Error
impl<R> From<SdkError<DetectFacesError, R>> for Error
Source§fn from(err: SdkError<DetectFacesError, R>) -> Self
fn from(err: SdkError<DetectFacesError, R>) -> Self
Source§impl<R> From<SdkError<DetectLabelsError, R>> for Error
impl<R> From<SdkError<DetectLabelsError, R>> for Error
Source§fn from(err: SdkError<DetectLabelsError, R>) -> Self
fn from(err: SdkError<DetectLabelsError, R>) -> Self
Source§impl<R> From<SdkError<DetectModerationLabelsError, R>> for Error
impl<R> From<SdkError<DetectModerationLabelsError, R>> for Error
Source§fn from(err: SdkError<DetectModerationLabelsError, R>) -> Self
fn from(err: SdkError<DetectModerationLabelsError, R>) -> Self
Source§impl<R> From<SdkError<DetectProtectiveEquipmentError, R>> for Error
impl<R> From<SdkError<DetectProtectiveEquipmentError, R>> for Error
Source§fn from(err: SdkError<DetectProtectiveEquipmentError, R>) -> Self
fn from(err: SdkError<DetectProtectiveEquipmentError, R>) -> Self
Source§impl<R> From<SdkError<DetectTextError, R>> for Error
impl<R> From<SdkError<DetectTextError, R>> for Error
Source§fn from(err: SdkError<DetectTextError, R>) -> Self
fn from(err: SdkError<DetectTextError, R>) -> Self
Source§impl<R> From<SdkError<DisassociateFacesError, R>> for Error
impl<R> From<SdkError<DisassociateFacesError, R>> for Error
Source§fn from(err: SdkError<DisassociateFacesError, R>) -> Self
fn from(err: SdkError<DisassociateFacesError, R>) -> Self
Source§impl<R> From<SdkError<DistributeDatasetEntriesError, R>> for Error
impl<R> From<SdkError<DistributeDatasetEntriesError, R>> for Error
Source§fn from(err: SdkError<DistributeDatasetEntriesError, R>) -> Self
fn from(err: SdkError<DistributeDatasetEntriesError, R>) -> Self
Source§impl<R> From<SdkError<GetCelebrityInfoError, R>> for Error
impl<R> From<SdkError<GetCelebrityInfoError, R>> for Error
Source§fn from(err: SdkError<GetCelebrityInfoError, R>) -> Self
fn from(err: SdkError<GetCelebrityInfoError, R>) -> Self
Source§impl<R> From<SdkError<GetCelebrityRecognitionError, R>> for Error
impl<R> From<SdkError<GetCelebrityRecognitionError, R>> for Error
Source§fn from(err: SdkError<GetCelebrityRecognitionError, R>) -> Self
fn from(err: SdkError<GetCelebrityRecognitionError, R>) -> Self
Source§impl<R> From<SdkError<GetContentModerationError, R>> for Error
impl<R> From<SdkError<GetContentModerationError, R>> for Error
Source§fn from(err: SdkError<GetContentModerationError, R>) -> Self
fn from(err: SdkError<GetContentModerationError, R>) -> Self
Source§impl<R> From<SdkError<GetFaceDetectionError, R>> for Error
impl<R> From<SdkError<GetFaceDetectionError, R>> for Error
Source§fn from(err: SdkError<GetFaceDetectionError, R>) -> Self
fn from(err: SdkError<GetFaceDetectionError, R>) -> Self
Source§impl<R> From<SdkError<GetFaceLivenessSessionResultsError, R>> for Error
impl<R> From<SdkError<GetFaceLivenessSessionResultsError, R>> for Error
Source§fn from(err: SdkError<GetFaceLivenessSessionResultsError, R>) -> Self
fn from(err: SdkError<GetFaceLivenessSessionResultsError, R>) -> Self
Source§impl<R> From<SdkError<GetFaceSearchError, R>> for Error
impl<R> From<SdkError<GetFaceSearchError, R>> for Error
Source§fn from(err: SdkError<GetFaceSearchError, R>) -> Self
fn from(err: SdkError<GetFaceSearchError, R>) -> Self
Source§impl<R> From<SdkError<GetLabelDetectionError, R>> for Error
impl<R> From<SdkError<GetLabelDetectionError, R>> for Error
Source§fn from(err: SdkError<GetLabelDetectionError, R>) -> Self
fn from(err: SdkError<GetLabelDetectionError, R>) -> Self
Source§impl<R> From<SdkError<GetMediaAnalysisJobError, R>> for Error
impl<R> From<SdkError<GetMediaAnalysisJobError, R>> for Error
Source§fn from(err: SdkError<GetMediaAnalysisJobError, R>) -> Self
fn from(err: SdkError<GetMediaAnalysisJobError, R>) -> Self
Source§impl<R> From<SdkError<GetPersonTrackingError, R>> for Error
impl<R> From<SdkError<GetPersonTrackingError, R>> for Error
Source§fn from(err: SdkError<GetPersonTrackingError, R>) -> Self
fn from(err: SdkError<GetPersonTrackingError, R>) -> Self
Source§impl<R> From<SdkError<GetSegmentDetectionError, R>> for Error
impl<R> From<SdkError<GetSegmentDetectionError, R>> for Error
Source§fn from(err: SdkError<GetSegmentDetectionError, R>) -> Self
fn from(err: SdkError<GetSegmentDetectionError, R>) -> Self
Source§impl<R> From<SdkError<GetTextDetectionError, R>> for Error
impl<R> From<SdkError<GetTextDetectionError, R>> for Error
Source§fn from(err: SdkError<GetTextDetectionError, R>) -> Self
fn from(err: SdkError<GetTextDetectionError, R>) -> Self
Source§impl<R> From<SdkError<IndexFacesError, R>> for Error
impl<R> From<SdkError<IndexFacesError, R>> for Error
Source§fn from(err: SdkError<IndexFacesError, R>) -> Self
fn from(err: SdkError<IndexFacesError, R>) -> Self
Source§impl<R> From<SdkError<ListCollectionsError, R>> for Error
impl<R> From<SdkError<ListCollectionsError, R>> for Error
Source§fn from(err: SdkError<ListCollectionsError, R>) -> Self
fn from(err: SdkError<ListCollectionsError, R>) -> Self
Source§impl<R> From<SdkError<ListDatasetEntriesError, R>> for Error
impl<R> From<SdkError<ListDatasetEntriesError, R>> for Error
Source§fn from(err: SdkError<ListDatasetEntriesError, R>) -> Self
fn from(err: SdkError<ListDatasetEntriesError, R>) -> Self
Source§impl<R> From<SdkError<ListDatasetLabelsError, R>> for Error
impl<R> From<SdkError<ListDatasetLabelsError, R>> for Error
Source§fn from(err: SdkError<ListDatasetLabelsError, R>) -> Self
fn from(err: SdkError<ListDatasetLabelsError, R>) -> Self
Source§impl<R> From<SdkError<ListFacesError, R>> for Error
impl<R> From<SdkError<ListFacesError, R>> for Error
Source§fn from(err: SdkError<ListFacesError, R>) -> Self
fn from(err: SdkError<ListFacesError, R>) -> Self
Source§impl<R> From<SdkError<ListMediaAnalysisJobsError, R>> for Error
impl<R> From<SdkError<ListMediaAnalysisJobsError, R>> for Error
Source§fn from(err: SdkError<ListMediaAnalysisJobsError, R>) -> Self
fn from(err: SdkError<ListMediaAnalysisJobsError, R>) -> Self
Source§impl<R> From<SdkError<ListProjectPoliciesError, R>> for Error
impl<R> From<SdkError<ListProjectPoliciesError, R>> for Error
Source§fn from(err: SdkError<ListProjectPoliciesError, R>) -> Self
fn from(err: SdkError<ListProjectPoliciesError, R>) -> Self
Source§impl<R> From<SdkError<ListStreamProcessorsError, R>> for Error
impl<R> From<SdkError<ListStreamProcessorsError, R>> for Error
Source§fn from(err: SdkError<ListStreamProcessorsError, R>) -> Self
fn from(err: SdkError<ListStreamProcessorsError, 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<ListUsersError, R>> for Error
impl<R> From<SdkError<ListUsersError, R>> for Error
Source§fn from(err: SdkError<ListUsersError, R>) -> Self
fn from(err: SdkError<ListUsersError, R>) -> Self
Source§impl<R> From<SdkError<PutProjectPolicyError, R>> for Error
impl<R> From<SdkError<PutProjectPolicyError, R>> for Error
Source§fn from(err: SdkError<PutProjectPolicyError, R>) -> Self
fn from(err: SdkError<PutProjectPolicyError, R>) -> Self
Source§impl<R> From<SdkError<RecognizeCelebritiesError, R>> for Error
impl<R> From<SdkError<RecognizeCelebritiesError, R>> for Error
Source§fn from(err: SdkError<RecognizeCelebritiesError, R>) -> Self
fn from(err: SdkError<RecognizeCelebritiesError, R>) -> Self
Source§impl<R> From<SdkError<SearchFacesByImageError, R>> for Error
impl<R> From<SdkError<SearchFacesByImageError, R>> for Error
Source§fn from(err: SdkError<SearchFacesByImageError, R>) -> Self
fn from(err: SdkError<SearchFacesByImageError, R>) -> Self
Source§impl<R> From<SdkError<SearchFacesError, R>> for Error
impl<R> From<SdkError<SearchFacesError, R>> for Error
Source§fn from(err: SdkError<SearchFacesError, R>) -> Self
fn from(err: SdkError<SearchFacesError, R>) -> Self
Source§impl<R> From<SdkError<SearchUsersByImageError, R>> for Error
impl<R> From<SdkError<SearchUsersByImageError, R>> for Error
Source§fn from(err: SdkError<SearchUsersByImageError, R>) -> Self
fn from(err: SdkError<SearchUsersByImageError, R>) -> Self
Source§impl<R> From<SdkError<SearchUsersError, R>> for Error
impl<R> From<SdkError<SearchUsersError, R>> for Error
Source§fn from(err: SdkError<SearchUsersError, R>) -> Self
fn from(err: SdkError<SearchUsersError, R>) -> Self
Source§impl<R> From<SdkError<StartCelebrityRecognitionError, R>> for Error
impl<R> From<SdkError<StartCelebrityRecognitionError, R>> for Error
Source§fn from(err: SdkError<StartCelebrityRecognitionError, R>) -> Self
fn from(err: SdkError<StartCelebrityRecognitionError, R>) -> Self
Source§impl<R> From<SdkError<StartContentModerationError, R>> for Error
impl<R> From<SdkError<StartContentModerationError, R>> for Error
Source§fn from(err: SdkError<StartContentModerationError, R>) -> Self
fn from(err: SdkError<StartContentModerationError, R>) -> Self
Source§impl<R> From<SdkError<StartFaceDetectionError, R>> for Error
impl<R> From<SdkError<StartFaceDetectionError, R>> for Error
Source§fn from(err: SdkError<StartFaceDetectionError, R>) -> Self
fn from(err: SdkError<StartFaceDetectionError, R>) -> Self
Source§impl<R> From<SdkError<StartFaceSearchError, R>> for Error
impl<R> From<SdkError<StartFaceSearchError, R>> for Error
Source§fn from(err: SdkError<StartFaceSearchError, R>) -> Self
fn from(err: SdkError<StartFaceSearchError, R>) -> Self
Source§impl<R> From<SdkError<StartLabelDetectionError, R>> for Error
impl<R> From<SdkError<StartLabelDetectionError, R>> for Error
Source§fn from(err: SdkError<StartLabelDetectionError, R>) -> Self
fn from(err: SdkError<StartLabelDetectionError, R>) -> Self
Source§impl<R> From<SdkError<StartMediaAnalysisJobError, R>> for Error
impl<R> From<SdkError<StartMediaAnalysisJobError, R>> for Error
Source§fn from(err: SdkError<StartMediaAnalysisJobError, R>) -> Self
fn from(err: SdkError<StartMediaAnalysisJobError, R>) -> Self
Source§impl<R> From<SdkError<StartPersonTrackingError, R>> for Error
impl<R> From<SdkError<StartPersonTrackingError, R>> for Error
Source§fn from(err: SdkError<StartPersonTrackingError, R>) -> Self
fn from(err: SdkError<StartPersonTrackingError, R>) -> Self
Source§impl<R> From<SdkError<StartProjectVersionError, R>> for Error
impl<R> From<SdkError<StartProjectVersionError, R>> for Error
Source§fn from(err: SdkError<StartProjectVersionError, R>) -> Self
fn from(err: SdkError<StartProjectVersionError, R>) -> Self
Source§impl<R> From<SdkError<StartSegmentDetectionError, R>> for Error
impl<R> From<SdkError<StartSegmentDetectionError, R>> for Error
Source§fn from(err: SdkError<StartSegmentDetectionError, R>) -> Self
fn from(err: SdkError<StartSegmentDetectionError, R>) -> Self
Source§impl<R> From<SdkError<StartStreamProcessorError, R>> for Error
impl<R> From<SdkError<StartStreamProcessorError, R>> for Error
Source§fn from(err: SdkError<StartStreamProcessorError, R>) -> Self
fn from(err: SdkError<StartStreamProcessorError, R>) -> Self
Source§impl<R> From<SdkError<StartTextDetectionError, R>> for Error
impl<R> From<SdkError<StartTextDetectionError, R>> for Error
Source§fn from(err: SdkError<StartTextDetectionError, R>) -> Self
fn from(err: SdkError<StartTextDetectionError, R>) -> Self
Source§impl<R> From<SdkError<StopProjectVersionError, R>> for Error
impl<R> From<SdkError<StopProjectVersionError, R>> for Error
Source§fn from(err: SdkError<StopProjectVersionError, R>) -> Self
fn from(err: SdkError<StopProjectVersionError, R>) -> Self
Source§impl<R> From<SdkError<StopStreamProcessorError, R>> for Error
impl<R> From<SdkError<StopStreamProcessorError, R>> for Error
Source§fn from(err: SdkError<StopStreamProcessorError, R>) -> Self
fn from(err: SdkError<StopStreamProcessorError, 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<UpdateDatasetEntriesError, R>> for Error
impl<R> From<SdkError<UpdateDatasetEntriesError, R>> for Error
Source§fn from(err: SdkError<UpdateDatasetEntriesError, R>) -> Self
fn from(err: SdkError<UpdateDatasetEntriesError, R>) -> Self
Source§impl<R> From<SdkError<UpdateStreamProcessorError, R>> for Error
impl<R> From<SdkError<UpdateStreamProcessorError, R>> for Error
Source§fn from(err: SdkError<UpdateStreamProcessorError, R>) -> Self
fn from(err: SdkError<UpdateStreamProcessorError, R>) -> Self
Source§impl From<SearchFacesByImageError> for Error
impl From<SearchFacesByImageError> for Error
Source§fn from(err: SearchFacesByImageError) -> Self
fn from(err: SearchFacesByImageError) -> Self
Source§impl From<SearchFacesError> for Error
impl From<SearchFacesError> for Error
Source§fn from(err: SearchFacesError) -> Self
fn from(err: SearchFacesError) -> Self
Source§impl From<SearchUsersByImageError> for Error
impl From<SearchUsersByImageError> for Error
Source§fn from(err: SearchUsersByImageError) -> Self
fn from(err: SearchUsersByImageError) -> Self
Source§impl From<SearchUsersError> for Error
impl From<SearchUsersError> for Error
Source§fn from(err: SearchUsersError) -> Self
fn from(err: SearchUsersError) -> Self
Source§impl From<StartCelebrityRecognitionError> for Error
impl From<StartCelebrityRecognitionError> for Error
Source§fn from(err: StartCelebrityRecognitionError) -> Self
fn from(err: StartCelebrityRecognitionError) -> Self
Source§impl From<StartContentModerationError> for Error
impl From<StartContentModerationError> for Error
Source§fn from(err: StartContentModerationError) -> Self
fn from(err: StartContentModerationError) -> Self
Source§impl From<StartFaceDetectionError> for Error
impl From<StartFaceDetectionError> for Error
Source§fn from(err: StartFaceDetectionError) -> Self
fn from(err: StartFaceDetectionError) -> Self
Source§impl From<StartFaceSearchError> for Error
impl From<StartFaceSearchError> for Error
Source§fn from(err: StartFaceSearchError) -> Self
fn from(err: StartFaceSearchError) -> Self
Source§impl From<StartLabelDetectionError> for Error
impl From<StartLabelDetectionError> for Error
Source§fn from(err: StartLabelDetectionError) -> Self
fn from(err: StartLabelDetectionError) -> Self
Source§impl From<StartMediaAnalysisJobError> for Error
impl From<StartMediaAnalysisJobError> for Error
Source§fn from(err: StartMediaAnalysisJobError) -> Self
fn from(err: StartMediaAnalysisJobError) -> Self
Source§impl From<StartPersonTrackingError> for Error
impl From<StartPersonTrackingError> for Error
Source§fn from(err: StartPersonTrackingError) -> Self
fn from(err: StartPersonTrackingError) -> Self
Source§impl From<StartProjectVersionError> for Error
impl From<StartProjectVersionError> for Error
Source§fn from(err: StartProjectVersionError) -> Self
fn from(err: StartProjectVersionError) -> Self
Source§impl From<StartSegmentDetectionError> for Error
impl From<StartSegmentDetectionError> for Error
Source§fn from(err: StartSegmentDetectionError) -> Self
fn from(err: StartSegmentDetectionError) -> Self
Source§impl From<StartStreamProcessorError> for Error
impl From<StartStreamProcessorError> for Error
Source§fn from(err: StartStreamProcessorError) -> Self
fn from(err: StartStreamProcessorError) -> Self
Source§impl From<StartTextDetectionError> for Error
impl From<StartTextDetectionError> for Error
Source§fn from(err: StartTextDetectionError) -> Self
fn from(err: StartTextDetectionError) -> Self
Source§impl From<StopProjectVersionError> for Error
impl From<StopProjectVersionError> for Error
Source§fn from(err: StopProjectVersionError) -> Self
fn from(err: StopProjectVersionError) -> Self
Source§impl From<StopStreamProcessorError> for Error
impl From<StopStreamProcessorError> for Error
Source§fn from(err: StopStreamProcessorError) -> Self
fn from(err: StopStreamProcessorError) -> 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<UpdateDatasetEntriesError> for Error
impl From<UpdateDatasetEntriesError> for Error
Source§fn from(err: UpdateDatasetEntriesError) -> Self
fn from(err: UpdateDatasetEntriesError) -> Self
Source§impl From<UpdateStreamProcessorError> for Error
impl From<UpdateStreamProcessorError> for Error
Source§fn from(err: UpdateStreamProcessorError) -> Self
fn from(err: UpdateStreamProcessorError) -> Self
Source§impl<O, E> From<WaiterError<O, E>> for Error
impl<O, E> From<WaiterError<O, E>> for Error
Source§fn from(err: WaiterError<O, E>) -> Self
fn from(err: WaiterError<O, E>) -> 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);