#[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServiceError(InternalServiceError),
InvalidNextTokenException(InvalidNextTokenException),
InvalidRequestException(InvalidRequestException),
ResourceExistsException(ResourceExistsException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceUnavailableException(ServiceUnavailableException),
ThrottlingException(ThrottlingException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
You do not have sufficient access to perform this action.
ConflictException(ConflictException)
This exception is thrown when the UpdateServer
is called for a file transfer protocol-enabled server that has VPC as the endpoint type and the server's VpcEndpointID
is not in the available state.
InternalServiceError(InternalServiceError)
This exception is thrown when an error occurs in the Transfer Family service.
InvalidNextTokenException(InvalidNextTokenException)
The NextToken
parameter that was passed is invalid.
InvalidRequestException(InvalidRequestException)
This exception is thrown when the client submits a malformed request.
ResourceExistsException(ResourceExistsException)
The requested resource does not exist, or exists in a region other than the one specified for the command.
ResourceNotFoundException(ResourceNotFoundException)
This exception is thrown when a resource is not found by the Amazon Web ServicesTransfer Family service.
The request has failed because the Amazon Web ServicesTransfer Family service is not available.
ThrottlingException(ThrottlingException)
The request was denied due to request throttling.
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<CreateAccessError> for Error
impl From<CreateAccessError> for Error
Source§fn from(err: CreateAccessError) -> Self
fn from(err: CreateAccessError) -> Self
Source§impl From<CreateAgreementError> for Error
impl From<CreateAgreementError> for Error
Source§fn from(err: CreateAgreementError) -> Self
fn from(err: CreateAgreementError) -> Self
Source§impl From<CreateConnectorError> for Error
impl From<CreateConnectorError> for Error
Source§fn from(err: CreateConnectorError) -> Self
fn from(err: CreateConnectorError) -> Self
Source§impl From<CreateProfileError> for Error
impl From<CreateProfileError> for Error
Source§fn from(err: CreateProfileError) -> Self
fn from(err: CreateProfileError) -> Self
Source§impl From<CreateServerError> for Error
impl From<CreateServerError> for Error
Source§fn from(err: CreateServerError) -> Self
fn from(err: CreateServerError) -> 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<CreateWorkflowError> for Error
impl From<CreateWorkflowError> for Error
Source§fn from(err: CreateWorkflowError) -> Self
fn from(err: CreateWorkflowError) -> Self
Source§impl From<DeleteAccessError> for Error
impl From<DeleteAccessError> for Error
Source§fn from(err: DeleteAccessError) -> Self
fn from(err: DeleteAccessError) -> Self
Source§impl From<DeleteAgreementError> for Error
impl From<DeleteAgreementError> for Error
Source§fn from(err: DeleteAgreementError) -> Self
fn from(err: DeleteAgreementError) -> Self
Source§impl From<DeleteCertificateError> for Error
impl From<DeleteCertificateError> for Error
Source§fn from(err: DeleteCertificateError) -> Self
fn from(err: DeleteCertificateError) -> Self
Source§impl From<DeleteConnectorError> for Error
impl From<DeleteConnectorError> for Error
Source§fn from(err: DeleteConnectorError) -> Self
fn from(err: DeleteConnectorError) -> Self
Source§impl From<DeleteHostKeyError> for Error
impl From<DeleteHostKeyError> for Error
Source§fn from(err: DeleteHostKeyError) -> Self
fn from(err: DeleteHostKeyError) -> Self
Source§impl From<DeleteProfileError> for Error
impl From<DeleteProfileError> for Error
Source§fn from(err: DeleteProfileError) -> Self
fn from(err: DeleteProfileError) -> Self
Source§impl From<DeleteServerError> for Error
impl From<DeleteServerError> for Error
Source§fn from(err: DeleteServerError) -> Self
fn from(err: DeleteServerError) -> Self
Source§impl From<DeleteSshPublicKeyError> for Error
impl From<DeleteSshPublicKeyError> for Error
Source§fn from(err: DeleteSshPublicKeyError) -> Self
fn from(err: DeleteSshPublicKeyError) -> 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<DeleteWorkflowError> for Error
impl From<DeleteWorkflowError> for Error
Source§fn from(err: DeleteWorkflowError) -> Self
fn from(err: DeleteWorkflowError) -> Self
Source§impl From<DescribeAccessError> for Error
impl From<DescribeAccessError> for Error
Source§fn from(err: DescribeAccessError) -> Self
fn from(err: DescribeAccessError) -> Self
Source§impl From<DescribeAgreementError> for Error
impl From<DescribeAgreementError> for Error
Source§fn from(err: DescribeAgreementError) -> Self
fn from(err: DescribeAgreementError) -> Self
Source§impl From<DescribeCertificateError> for Error
impl From<DescribeCertificateError> for Error
Source§fn from(err: DescribeCertificateError) -> Self
fn from(err: DescribeCertificateError) -> Self
Source§impl From<DescribeConnectorError> for Error
impl From<DescribeConnectorError> for Error
Source§fn from(err: DescribeConnectorError) -> Self
fn from(err: DescribeConnectorError) -> Self
Source§impl From<DescribeExecutionError> for Error
impl From<DescribeExecutionError> for Error
Source§fn from(err: DescribeExecutionError) -> Self
fn from(err: DescribeExecutionError) -> Self
Source§impl From<DescribeHostKeyError> for Error
impl From<DescribeHostKeyError> for Error
Source§fn from(err: DescribeHostKeyError) -> Self
fn from(err: DescribeHostKeyError) -> Self
Source§impl From<DescribeProfileError> for Error
impl From<DescribeProfileError> for Error
Source§fn from(err: DescribeProfileError) -> Self
fn from(err: DescribeProfileError) -> Self
Source§impl From<DescribeSecurityPolicyError> for Error
impl From<DescribeSecurityPolicyError> for Error
Source§fn from(err: DescribeSecurityPolicyError) -> Self
fn from(err: DescribeSecurityPolicyError) -> Self
Source§impl From<DescribeServerError> for Error
impl From<DescribeServerError> for Error
Source§fn from(err: DescribeServerError) -> Self
fn from(err: DescribeServerError) -> Self
Source§impl From<DescribeUserError> for Error
impl From<DescribeUserError> for Error
Source§fn from(err: DescribeUserError) -> Self
fn from(err: DescribeUserError) -> Self
Source§impl From<DescribeWorkflowError> for Error
impl From<DescribeWorkflowError> for Error
Source§fn from(err: DescribeWorkflowError) -> Self
fn from(err: DescribeWorkflowError) -> Self
Source§impl From<ImportCertificateError> for Error
impl From<ImportCertificateError> for Error
Source§fn from(err: ImportCertificateError) -> Self
fn from(err: ImportCertificateError) -> Self
Source§impl From<ImportHostKeyError> for Error
impl From<ImportHostKeyError> for Error
Source§fn from(err: ImportHostKeyError) -> Self
fn from(err: ImportHostKeyError) -> Self
Source§impl From<ImportSshPublicKeyError> for Error
impl From<ImportSshPublicKeyError> for Error
Source§fn from(err: ImportSshPublicKeyError) -> Self
fn from(err: ImportSshPublicKeyError) -> Self
Source§impl From<ListAccessesError> for Error
impl From<ListAccessesError> for Error
Source§fn from(err: ListAccessesError) -> Self
fn from(err: ListAccessesError) -> Self
Source§impl From<ListAgreementsError> for Error
impl From<ListAgreementsError> for Error
Source§fn from(err: ListAgreementsError) -> Self
fn from(err: ListAgreementsError) -> Self
Source§impl From<ListCertificatesError> for Error
impl From<ListCertificatesError> for Error
Source§fn from(err: ListCertificatesError) -> Self
fn from(err: ListCertificatesError) -> Self
Source§impl From<ListConnectorsError> for Error
impl From<ListConnectorsError> for Error
Source§fn from(err: ListConnectorsError) -> Self
fn from(err: ListConnectorsError) -> Self
Source§impl From<ListExecutionsError> for Error
impl From<ListExecutionsError> for Error
Source§fn from(err: ListExecutionsError) -> Self
fn from(err: ListExecutionsError) -> Self
Source§impl From<ListFileTransferResultsError> for Error
impl From<ListFileTransferResultsError> for Error
Source§fn from(err: ListFileTransferResultsError) -> Self
fn from(err: ListFileTransferResultsError) -> Self
Source§impl From<ListHostKeysError> for Error
impl From<ListHostKeysError> for Error
Source§fn from(err: ListHostKeysError) -> Self
fn from(err: ListHostKeysError) -> Self
Source§impl From<ListProfilesError> for Error
impl From<ListProfilesError> for Error
Source§fn from(err: ListProfilesError) -> Self
fn from(err: ListProfilesError) -> Self
Source§impl From<ListSecurityPoliciesError> for Error
impl From<ListSecurityPoliciesError> for Error
Source§fn from(err: ListSecurityPoliciesError) -> Self
fn from(err: ListSecurityPoliciesError) -> Self
Source§impl From<ListServersError> for Error
impl From<ListServersError> for Error
Source§fn from(err: ListServersError) -> Self
fn from(err: ListServersError) -> 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<ListWorkflowsError> for Error
impl From<ListWorkflowsError> for Error
Source§fn from(err: ListWorkflowsError) -> Self
fn from(err: ListWorkflowsError) -> Self
Source§impl<R> From<SdkError<CreateAccessError, R>> for Error
impl<R> From<SdkError<CreateAccessError, R>> for Error
Source§fn from(err: SdkError<CreateAccessError, R>) -> Self
fn from(err: SdkError<CreateAccessError, R>) -> Self
Source§impl<R> From<SdkError<CreateAgreementError, R>> for Error
impl<R> From<SdkError<CreateAgreementError, R>> for Error
Source§fn from(err: SdkError<CreateAgreementError, R>) -> Self
fn from(err: SdkError<CreateAgreementError, R>) -> Self
Source§impl<R> From<SdkError<CreateConnectorError, R>> for Error
impl<R> From<SdkError<CreateConnectorError, R>> for Error
Source§fn from(err: SdkError<CreateConnectorError, R>) -> Self
fn from(err: SdkError<CreateConnectorError, R>) -> Self
Source§impl<R> From<SdkError<CreateProfileError, R>> for Error
impl<R> From<SdkError<CreateProfileError, R>> for Error
Source§fn from(err: SdkError<CreateProfileError, R>) -> Self
fn from(err: SdkError<CreateProfileError, R>) -> Self
Source§impl<R> From<SdkError<CreateServerError, R>> for Error
impl<R> From<SdkError<CreateServerError, R>> for Error
Source§fn from(err: SdkError<CreateServerError, R>) -> Self
fn from(err: SdkError<CreateServerError, 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<CreateWorkflowError, R>> for Error
impl<R> From<SdkError<CreateWorkflowError, R>> for Error
Source§fn from(err: SdkError<CreateWorkflowError, R>) -> Self
fn from(err: SdkError<CreateWorkflowError, R>) -> Self
Source§impl<R> From<SdkError<DeleteAccessError, R>> for Error
impl<R> From<SdkError<DeleteAccessError, R>> for Error
Source§fn from(err: SdkError<DeleteAccessError, R>) -> Self
fn from(err: SdkError<DeleteAccessError, R>) -> Self
Source§impl<R> From<SdkError<DeleteAgreementError, R>> for Error
impl<R> From<SdkError<DeleteAgreementError, R>> for Error
Source§fn from(err: SdkError<DeleteAgreementError, R>) -> Self
fn from(err: SdkError<DeleteAgreementError, R>) -> Self
Source§impl<R> From<SdkError<DeleteCertificateError, R>> for Error
impl<R> From<SdkError<DeleteCertificateError, R>> for Error
Source§fn from(err: SdkError<DeleteCertificateError, R>) -> Self
fn from(err: SdkError<DeleteCertificateError, R>) -> Self
Source§impl<R> From<SdkError<DeleteConnectorError, R>> for Error
impl<R> From<SdkError<DeleteConnectorError, R>> for Error
Source§fn from(err: SdkError<DeleteConnectorError, R>) -> Self
fn from(err: SdkError<DeleteConnectorError, R>) -> Self
Source§impl<R> From<SdkError<DeleteHostKeyError, R>> for Error
impl<R> From<SdkError<DeleteHostKeyError, R>> for Error
Source§fn from(err: SdkError<DeleteHostKeyError, R>) -> Self
fn from(err: SdkError<DeleteHostKeyError, R>) -> Self
Source§impl<R> From<SdkError<DeleteProfileError, R>> for Error
impl<R> From<SdkError<DeleteProfileError, R>> for Error
Source§fn from(err: SdkError<DeleteProfileError, R>) -> Self
fn from(err: SdkError<DeleteProfileError, R>) -> Self
Source§impl<R> From<SdkError<DeleteServerError, R>> for Error
impl<R> From<SdkError<DeleteServerError, R>> for Error
Source§fn from(err: SdkError<DeleteServerError, R>) -> Self
fn from(err: SdkError<DeleteServerError, R>) -> Self
Source§impl<R> From<SdkError<DeleteSshPublicKeyError, R>> for Error
impl<R> From<SdkError<DeleteSshPublicKeyError, R>> for Error
Source§fn from(err: SdkError<DeleteSshPublicKeyError, R>) -> Self
fn from(err: SdkError<DeleteSshPublicKeyError, 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<DeleteWorkflowError, R>> for Error
impl<R> From<SdkError<DeleteWorkflowError, R>> for Error
Source§fn from(err: SdkError<DeleteWorkflowError, R>) -> Self
fn from(err: SdkError<DeleteWorkflowError, R>) -> Self
Source§impl<R> From<SdkError<DescribeAccessError, R>> for Error
impl<R> From<SdkError<DescribeAccessError, R>> for Error
Source§fn from(err: SdkError<DescribeAccessError, R>) -> Self
fn from(err: SdkError<DescribeAccessError, R>) -> Self
Source§impl<R> From<SdkError<DescribeAgreementError, R>> for Error
impl<R> From<SdkError<DescribeAgreementError, R>> for Error
Source§fn from(err: SdkError<DescribeAgreementError, R>) -> Self
fn from(err: SdkError<DescribeAgreementError, R>) -> Self
Source§impl<R> From<SdkError<DescribeCertificateError, R>> for Error
impl<R> From<SdkError<DescribeCertificateError, R>> for Error
Source§fn from(err: SdkError<DescribeCertificateError, R>) -> Self
fn from(err: SdkError<DescribeCertificateError, R>) -> Self
Source§impl<R> From<SdkError<DescribeConnectorError, R>> for Error
impl<R> From<SdkError<DescribeConnectorError, R>> for Error
Source§fn from(err: SdkError<DescribeConnectorError, R>) -> Self
fn from(err: SdkError<DescribeConnectorError, R>) -> Self
Source§impl<R> From<SdkError<DescribeExecutionError, R>> for Error
impl<R> From<SdkError<DescribeExecutionError, R>> for Error
Source§fn from(err: SdkError<DescribeExecutionError, R>) -> Self
fn from(err: SdkError<DescribeExecutionError, R>) -> Self
Source§impl<R> From<SdkError<DescribeHostKeyError, R>> for Error
impl<R> From<SdkError<DescribeHostKeyError, R>> for Error
Source§fn from(err: SdkError<DescribeHostKeyError, R>) -> Self
fn from(err: SdkError<DescribeHostKeyError, R>) -> Self
Source§impl<R> From<SdkError<DescribeProfileError, R>> for Error
impl<R> From<SdkError<DescribeProfileError, R>> for Error
Source§fn from(err: SdkError<DescribeProfileError, R>) -> Self
fn from(err: SdkError<DescribeProfileError, R>) -> Self
Source§impl<R> From<SdkError<DescribeSecurityPolicyError, R>> for Error
impl<R> From<SdkError<DescribeSecurityPolicyError, R>> for Error
Source§fn from(err: SdkError<DescribeSecurityPolicyError, R>) -> Self
fn from(err: SdkError<DescribeSecurityPolicyError, R>) -> Self
Source§impl<R> From<SdkError<DescribeServerError, R>> for Error
impl<R> From<SdkError<DescribeServerError, R>> for Error
Source§fn from(err: SdkError<DescribeServerError, R>) -> Self
fn from(err: SdkError<DescribeServerError, R>) -> Self
Source§impl<R> From<SdkError<DescribeUserError, R>> for Error
impl<R> From<SdkError<DescribeUserError, R>> for Error
Source§fn from(err: SdkError<DescribeUserError, R>) -> Self
fn from(err: SdkError<DescribeUserError, R>) -> Self
Source§impl<R> From<SdkError<DescribeWorkflowError, R>> for Error
impl<R> From<SdkError<DescribeWorkflowError, R>> for Error
Source§fn from(err: SdkError<DescribeWorkflowError, R>) -> Self
fn from(err: SdkError<DescribeWorkflowError, R>) -> Self
Source§impl<R> From<SdkError<ImportCertificateError, R>> for Error
impl<R> From<SdkError<ImportCertificateError, R>> for Error
Source§fn from(err: SdkError<ImportCertificateError, R>) -> Self
fn from(err: SdkError<ImportCertificateError, R>) -> Self
Source§impl<R> From<SdkError<ImportHostKeyError, R>> for Error
impl<R> From<SdkError<ImportHostKeyError, R>> for Error
Source§fn from(err: SdkError<ImportHostKeyError, R>) -> Self
fn from(err: SdkError<ImportHostKeyError, R>) -> Self
Source§impl<R> From<SdkError<ImportSshPublicKeyError, R>> for Error
impl<R> From<SdkError<ImportSshPublicKeyError, R>> for Error
Source§fn from(err: SdkError<ImportSshPublicKeyError, R>) -> Self
fn from(err: SdkError<ImportSshPublicKeyError, R>) -> Self
Source§impl<R> From<SdkError<ListAccessesError, R>> for Error
impl<R> From<SdkError<ListAccessesError, R>> for Error
Source§fn from(err: SdkError<ListAccessesError, R>) -> Self
fn from(err: SdkError<ListAccessesError, R>) -> Self
Source§impl<R> From<SdkError<ListAgreementsError, R>> for Error
impl<R> From<SdkError<ListAgreementsError, R>> for Error
Source§fn from(err: SdkError<ListAgreementsError, R>) -> Self
fn from(err: SdkError<ListAgreementsError, R>) -> Self
Source§impl<R> From<SdkError<ListCertificatesError, R>> for Error
impl<R> From<SdkError<ListCertificatesError, R>> for Error
Source§fn from(err: SdkError<ListCertificatesError, R>) -> Self
fn from(err: SdkError<ListCertificatesError, R>) -> Self
Source§impl<R> From<SdkError<ListConnectorsError, R>> for Error
impl<R> From<SdkError<ListConnectorsError, R>> for Error
Source§fn from(err: SdkError<ListConnectorsError, R>) -> Self
fn from(err: SdkError<ListConnectorsError, R>) -> Self
Source§impl<R> From<SdkError<ListExecutionsError, R>> for Error
impl<R> From<SdkError<ListExecutionsError, R>> for Error
Source§fn from(err: SdkError<ListExecutionsError, R>) -> Self
fn from(err: SdkError<ListExecutionsError, R>) -> Self
Source§impl<R> From<SdkError<ListFileTransferResultsError, R>> for Error
impl<R> From<SdkError<ListFileTransferResultsError, R>> for Error
Source§fn from(err: SdkError<ListFileTransferResultsError, R>) -> Self
fn from(err: SdkError<ListFileTransferResultsError, R>) -> Self
Source§impl<R> From<SdkError<ListHostKeysError, R>> for Error
impl<R> From<SdkError<ListHostKeysError, R>> for Error
Source§fn from(err: SdkError<ListHostKeysError, R>) -> Self
fn from(err: SdkError<ListHostKeysError, R>) -> Self
Source§impl<R> From<SdkError<ListProfilesError, R>> for Error
impl<R> From<SdkError<ListProfilesError, R>> for Error
Source§fn from(err: SdkError<ListProfilesError, R>) -> Self
fn from(err: SdkError<ListProfilesError, R>) -> Self
Source§impl<R> From<SdkError<ListSecurityPoliciesError, R>> for Error
impl<R> From<SdkError<ListSecurityPoliciesError, R>> for Error
Source§fn from(err: SdkError<ListSecurityPoliciesError, R>) -> Self
fn from(err: SdkError<ListSecurityPoliciesError, R>) -> Self
Source§impl<R> From<SdkError<ListServersError, R>> for Error
impl<R> From<SdkError<ListServersError, R>> for Error
Source§fn from(err: SdkError<ListServersError, R>) -> Self
fn from(err: SdkError<ListServersError, 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<ListWorkflowsError, R>> for Error
impl<R> From<SdkError<ListWorkflowsError, R>> for Error
Source§fn from(err: SdkError<ListWorkflowsError, R>) -> Self
fn from(err: SdkError<ListWorkflowsError, R>) -> Self
Source§impl<R> From<SdkError<SendWorkflowStepStateError, R>> for Error
impl<R> From<SdkError<SendWorkflowStepStateError, R>> for Error
Source§fn from(err: SdkError<SendWorkflowStepStateError, R>) -> Self
fn from(err: SdkError<SendWorkflowStepStateError, R>) -> Self
Source§impl<R> From<SdkError<StartDirectoryListingError, R>> for Error
impl<R> From<SdkError<StartDirectoryListingError, R>> for Error
Source§fn from(err: SdkError<StartDirectoryListingError, R>) -> Self
fn from(err: SdkError<StartDirectoryListingError, R>) -> Self
Source§impl<R> From<SdkError<StartFileTransferError, R>> for Error
impl<R> From<SdkError<StartFileTransferError, R>> for Error
Source§fn from(err: SdkError<StartFileTransferError, R>) -> Self
fn from(err: SdkError<StartFileTransferError, R>) -> Self
Source§impl<R> From<SdkError<StartServerError, R>> for Error
impl<R> From<SdkError<StartServerError, R>> for Error
Source§fn from(err: SdkError<StartServerError, R>) -> Self
fn from(err: SdkError<StartServerError, R>) -> Self
Source§impl<R> From<SdkError<StopServerError, R>> for Error
impl<R> From<SdkError<StopServerError, R>> for Error
Source§fn from(err: SdkError<StopServerError, R>) -> Self
fn from(err: SdkError<StopServerError, 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<TestConnectionError, R>> for Error
impl<R> From<SdkError<TestConnectionError, R>> for Error
Source§fn from(err: SdkError<TestConnectionError, R>) -> Self
fn from(err: SdkError<TestConnectionError, R>) -> Self
Source§impl<R> From<SdkError<TestIdentityProviderError, R>> for Error
impl<R> From<SdkError<TestIdentityProviderError, R>> for Error
Source§fn from(err: SdkError<TestIdentityProviderError, R>) -> Self
fn from(err: SdkError<TestIdentityProviderError, 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<UpdateAccessError, R>> for Error
impl<R> From<SdkError<UpdateAccessError, R>> for Error
Source§fn from(err: SdkError<UpdateAccessError, R>) -> Self
fn from(err: SdkError<UpdateAccessError, R>) -> Self
Source§impl<R> From<SdkError<UpdateAgreementError, R>> for Error
impl<R> From<SdkError<UpdateAgreementError, R>> for Error
Source§fn from(err: SdkError<UpdateAgreementError, R>) -> Self
fn from(err: SdkError<UpdateAgreementError, R>) -> Self
Source§impl<R> From<SdkError<UpdateCertificateError, R>> for Error
impl<R> From<SdkError<UpdateCertificateError, R>> for Error
Source§fn from(err: SdkError<UpdateCertificateError, R>) -> Self
fn from(err: SdkError<UpdateCertificateError, R>) -> Self
Source§impl<R> From<SdkError<UpdateConnectorError, R>> for Error
impl<R> From<SdkError<UpdateConnectorError, R>> for Error
Source§fn from(err: SdkError<UpdateConnectorError, R>) -> Self
fn from(err: SdkError<UpdateConnectorError, R>) -> Self
Source§impl<R> From<SdkError<UpdateHostKeyError, R>> for Error
impl<R> From<SdkError<UpdateHostKeyError, R>> for Error
Source§fn from(err: SdkError<UpdateHostKeyError, R>) -> Self
fn from(err: SdkError<UpdateHostKeyError, R>) -> Self
Source§impl<R> From<SdkError<UpdateProfileError, R>> for Error
impl<R> From<SdkError<UpdateProfileError, R>> for Error
Source§fn from(err: SdkError<UpdateProfileError, R>) -> Self
fn from(err: SdkError<UpdateProfileError, R>) -> Self
Source§impl<R> From<SdkError<UpdateServerError, R>> for Error
impl<R> From<SdkError<UpdateServerError, R>> for Error
Source§fn from(err: SdkError<UpdateServerError, R>) -> Self
fn from(err: SdkError<UpdateServerError, R>) -> Self
Source§impl<R> From<SdkError<UpdateUserError, R>> for Error
impl<R> From<SdkError<UpdateUserError, R>> for Error
Source§fn from(err: SdkError<UpdateUserError, R>) -> Self
fn from(err: SdkError<UpdateUserError, R>) -> Self
Source§impl From<SendWorkflowStepStateError> for Error
impl From<SendWorkflowStepStateError> for Error
Source§fn from(err: SendWorkflowStepStateError) -> Self
fn from(err: SendWorkflowStepStateError) -> Self
Source§impl From<StartDirectoryListingError> for Error
impl From<StartDirectoryListingError> for Error
Source§fn from(err: StartDirectoryListingError) -> Self
fn from(err: StartDirectoryListingError) -> Self
Source§impl From<StartFileTransferError> for Error
impl From<StartFileTransferError> for Error
Source§fn from(err: StartFileTransferError) -> Self
fn from(err: StartFileTransferError) -> Self
Source§impl From<StartServerError> for Error
impl From<StartServerError> for Error
Source§fn from(err: StartServerError) -> Self
fn from(err: StartServerError) -> Self
Source§impl From<StopServerError> for Error
impl From<StopServerError> for Error
Source§fn from(err: StopServerError) -> Self
fn from(err: StopServerError) -> 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<TestConnectionError> for Error
impl From<TestConnectionError> for Error
Source§fn from(err: TestConnectionError) -> Self
fn from(err: TestConnectionError) -> Self
Source§impl From<TestIdentityProviderError> for Error
impl From<TestIdentityProviderError> for Error
Source§fn from(err: TestIdentityProviderError) -> Self
fn from(err: TestIdentityProviderError) -> 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<UpdateAccessError> for Error
impl From<UpdateAccessError> for Error
Source§fn from(err: UpdateAccessError) -> Self
fn from(err: UpdateAccessError) -> Self
Source§impl From<UpdateAgreementError> for Error
impl From<UpdateAgreementError> for Error
Source§fn from(err: UpdateAgreementError) -> Self
fn from(err: UpdateAgreementError) -> Self
Source§impl From<UpdateCertificateError> for Error
impl From<UpdateCertificateError> for Error
Source§fn from(err: UpdateCertificateError) -> Self
fn from(err: UpdateCertificateError) -> Self
Source§impl From<UpdateConnectorError> for Error
impl From<UpdateConnectorError> for Error
Source§fn from(err: UpdateConnectorError) -> Self
fn from(err: UpdateConnectorError) -> Self
Source§impl From<UpdateHostKeyError> for Error
impl From<UpdateHostKeyError> for Error
Source§fn from(err: UpdateHostKeyError) -> Self
fn from(err: UpdateHostKeyError) -> Self
Source§impl From<UpdateProfileError> for Error
impl From<UpdateProfileError> for Error
Source§fn from(err: UpdateProfileError) -> Self
fn from(err: UpdateProfileError) -> Self
Source§impl From<UpdateServerError> for Error
impl From<UpdateServerError> for Error
Source§fn from(err: UpdateServerError) -> Self
fn from(err: UpdateServerError) -> Self
Source§impl From<UpdateUserError> for Error
impl From<UpdateUserError> for Error
Source§fn from(err: UpdateUserError) -> Self
fn from(err: UpdateUserError) -> 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>
Returns self
with the
fg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.bright_black());
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>
Returns self
with the
fg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.bright_green());
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self
with the
fg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.bright_yellow());
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>
Returns self
with the
fg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.bright_magenta());
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>
Returns self
with the
fg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.bright_white());
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>
Returns self
with the
bg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.on_bright_black());
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>
Returns self
with the
bg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.on_bright_green());
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightYellow
.
§Example
println!("{}", value.on_bright_yellow());
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightBlue
.
§Example
println!("{}", value.on_bright_blue());
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightMagenta
.
§Example
println!("{}", value.on_bright_magenta());
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightCyan
.
§Example
println!("{}", value.on_bright_cyan());
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self
with the
bg()
set to
Color::BrightWhite
.
§Example
println!("{}", value.on_bright_white());
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 underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::Underline
.
§Example
println!("{}", value.underline());
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::RapidBlink
.
§Example
println!("{}", value.rapid_blink());
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);