Enum Error

Source
#[non_exhaustive]
pub enum Error {
Show 38 variants AccessDeniedException(AccessDeniedException), AuthenticationFailedException(AuthenticationFailedException), CertificateAlreadyExistsException(CertificateAlreadyExistsException), CertificateDoesNotExistException(CertificateDoesNotExistException), CertificateInUseException(CertificateInUseException), CertificateLimitExceededException(CertificateLimitExceededException), ClientException(ClientException), DirectoryAlreadyInRegionException(DirectoryAlreadyInRegionException), DirectoryAlreadySharedException(DirectoryAlreadySharedException), DirectoryDoesNotExistException(DirectoryDoesNotExistException), DirectoryInDesiredStateException(DirectoryInDesiredStateException), DirectoryLimitExceededException(DirectoryLimitExceededException), DirectoryNotSharedException(DirectoryNotSharedException), DirectoryUnavailableException(DirectoryUnavailableException), DomainControllerLimitExceededException(DomainControllerLimitExceededException), EntityAlreadyExistsException(EntityAlreadyExistsException), EntityDoesNotExistException(EntityDoesNotExistException), IncompatibleSettingsException(IncompatibleSettingsException), InsufficientPermissionsException(InsufficientPermissionsException), InvalidCertificateException(InvalidCertificateException), InvalidClientAuthStatusException(InvalidClientAuthStatusException), InvalidLdapsStatusException(InvalidLdapsStatusException), InvalidNextTokenException(InvalidNextTokenException), InvalidParameterException(InvalidParameterException), InvalidPasswordException(InvalidPasswordException), InvalidTargetException(InvalidTargetException), IpRouteLimitExceededException(IpRouteLimitExceededException), NoAvailableCertificateException(NoAvailableCertificateException), OrganizationsException(OrganizationsException), RegionLimitExceededException(RegionLimitExceededException), ServiceException(ServiceException), ShareLimitExceededException(ShareLimitExceededException), SnapshotLimitExceededException(SnapshotLimitExceededException), TagLimitExceededException(TagLimitExceededException), UnsupportedOperationException(UnsupportedOperationException), UnsupportedSettingsException(UnsupportedSettingsException), UserDoesNotExistException(UserDoesNotExistException), Unhandled(Unhandled),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

AccessDeniedException(AccessDeniedException)

You do not have sufficient access to perform this action.

§

AuthenticationFailedException(AuthenticationFailedException)

An authentication error occurred.

§

CertificateAlreadyExistsException(CertificateAlreadyExistsException)

The certificate has already been registered into the system.

§

CertificateDoesNotExistException(CertificateDoesNotExistException)

The certificate is not present in the system for describe or deregister activities.

§

CertificateInUseException(CertificateInUseException)

The certificate is being used for the LDAP security connection and cannot be removed without disabling LDAP security.

§

CertificateLimitExceededException(CertificateLimitExceededException)

The certificate could not be added because the certificate limit has been reached.

§

ClientException(ClientException)

A client exception has occurred.

§

DirectoryAlreadyInRegionException(DirectoryAlreadyInRegionException)

The Region you specified is the same Region where the Managed Microsoft AD directory was created. Specify a different Region and try again.

§

DirectoryAlreadySharedException(DirectoryAlreadySharedException)

The specified directory has already been shared with this Amazon Web Services account.

§

DirectoryDoesNotExistException(DirectoryDoesNotExistException)

The specified directory does not exist in the system.

§

DirectoryInDesiredStateException(DirectoryInDesiredStateException)

The directory is already updated to desired update type settings.

§

DirectoryLimitExceededException(DirectoryLimitExceededException)

The maximum number of directories in the region has been reached. You can use the GetDirectoryLimits operation to determine your directory limits in the region.

§

DirectoryNotSharedException(DirectoryNotSharedException)

The specified directory has not been shared with this Amazon Web Services account.

§

DirectoryUnavailableException(DirectoryUnavailableException)

The specified directory is unavailable.

§

DomainControllerLimitExceededException(DomainControllerLimitExceededException)

The maximum allowed number of domain controllers per directory was exceeded. The default limit per directory is 20 domain controllers.

§

EntityAlreadyExistsException(EntityAlreadyExistsException)

The specified entity already exists.

§

EntityDoesNotExistException(EntityDoesNotExistException)

The specified entity could not be found.

§

IncompatibleSettingsException(IncompatibleSettingsException)

The specified directory setting is not compatible with other settings.

§

InsufficientPermissionsException(InsufficientPermissionsException)

The account does not have sufficient permission to perform the operation.

§

InvalidCertificateException(InvalidCertificateException)

The certificate PEM that was provided has incorrect encoding.

§

InvalidClientAuthStatusException(InvalidClientAuthStatusException)

Client authentication is already enabled.

§

InvalidLdapsStatusException(InvalidLdapsStatusException)

The LDAP activities could not be performed because they are limited by the LDAPS status.

§

InvalidNextTokenException(InvalidNextTokenException)

The NextToken value is not valid.

§

InvalidParameterException(InvalidParameterException)

One or more parameters are not valid.

§

InvalidPasswordException(InvalidPasswordException)

The new password provided by the user does not meet the password complexity requirements defined in your directory.

§

InvalidTargetException(InvalidTargetException)

The specified shared target is not valid.

§

IpRouteLimitExceededException(IpRouteLimitExceededException)

The maximum allowed number of IP addresses was exceeded. The default limit is 100 IP address blocks.

§

NoAvailableCertificateException(NoAvailableCertificateException)

Client authentication setup could not be completed because at least one valid certificate must be registered in the system.

§

OrganizationsException(OrganizationsException)

Exception encountered while trying to access your Amazon Web Services organization.

§

RegionLimitExceededException(RegionLimitExceededException)

You have reached the limit for maximum number of simultaneous Region replications per directory.

§

ServiceException(ServiceException)

An exception has occurred in Directory Service.

§

ShareLimitExceededException(ShareLimitExceededException)

The maximum number of Amazon Web Services accounts that you can share with this directory has been reached.

§

SnapshotLimitExceededException(SnapshotLimitExceededException)

The maximum number of manual snapshots for the directory has been reached. You can use the GetSnapshotLimits operation to determine the snapshot limits for a directory.

§

TagLimitExceededException(TagLimitExceededException)

The maximum allowed number of tags was exceeded.

§

UnsupportedOperationException(UnsupportedOperationException)

The operation is not supported.

§

UnsupportedSettingsException(UnsupportedSettingsException)

The specified directory setting is not supported.

§

UserDoesNotExistException(UserDoesNotExistException)

The user provided a username that does not exist in your directory.

§

Unhandled(Unhandled)

👎Deprecated: Matching 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 Debug for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for Error

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for Error

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AcceptSharedDirectoryError> for Error

Source§

fn from(err: AcceptSharedDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<AddIpRoutesError> for Error

Source§

fn from(err: AddIpRoutesError) -> Self

Converts to this type from the input type.
Source§

impl From<AddRegionError> for Error

Source§

fn from(err: AddRegionError) -> Self

Converts to this type from the input type.
Source§

impl From<AddTagsToResourceError> for Error

Source§

fn from(err: AddTagsToResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<BuildError> for Error

Source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
Source§

impl From<CancelSchemaExtensionError> for Error

Source§

fn from(err: CancelSchemaExtensionError) -> Self

Converts to this type from the input type.
Source§

impl From<ConnectDirectoryError> for Error

Source§

fn from(err: ConnectDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateAliasError> for Error

Source§

fn from(err: CreateAliasError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateComputerError> for Error

Source§

fn from(err: CreateComputerError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateConditionalForwarderError> for Error

Source§

fn from(err: CreateConditionalForwarderError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateDirectoryError> for Error

Source§

fn from(err: CreateDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateLogSubscriptionError> for Error

Source§

fn from(err: CreateLogSubscriptionError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateMicrosoftADError> for Error

Source§

fn from(err: CreateMicrosoftADError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateSnapshotError> for Error

Source§

fn from(err: CreateSnapshotError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTrustError> for Error

Source§

fn from(err: CreateTrustError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteConditionalForwarderError> for Error

Source§

fn from(err: DeleteConditionalForwarderError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteDirectoryError> for Error

Source§

fn from(err: DeleteDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteLogSubscriptionError> for Error

Source§

fn from(err: DeleteLogSubscriptionError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteSnapshotError> for Error

Source§

fn from(err: DeleteSnapshotError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteTrustError> for Error

Source§

fn from(err: DeleteTrustError) -> Self

Converts to this type from the input type.
Source§

impl From<DeregisterCertificateError> for Error

Source§

fn from(err: DeregisterCertificateError) -> Self

Converts to this type from the input type.
Source§

impl From<DeregisterEventTopicError> for Error

Source§

fn from(err: DeregisterEventTopicError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeCertificateError> for Error

Source§

fn from(err: DescribeCertificateError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeClientAuthenticationSettingsError> for Error

Source§

fn from(err: DescribeClientAuthenticationSettingsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeConditionalForwardersError> for Error

Source§

fn from(err: DescribeConditionalForwardersError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeDirectoriesError> for Error

Source§

fn from(err: DescribeDirectoriesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeDirectoryDataAccessError> for Error

Source§

fn from(err: DescribeDirectoryDataAccessError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeDomainControllersError> for Error

Source§

fn from(err: DescribeDomainControllersError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeEventTopicsError> for Error

Source§

fn from(err: DescribeEventTopicsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeLDAPSSettingsError> for Error

Source§

fn from(err: DescribeLDAPSSettingsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeRegionsError> for Error

Source§

fn from(err: DescribeRegionsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeSettingsError> for Error

Source§

fn from(err: DescribeSettingsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeSharedDirectoriesError> for Error

Source§

fn from(err: DescribeSharedDirectoriesError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeSnapshotsError> for Error

Source§

fn from(err: DescribeSnapshotsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeTrustsError> for Error

Source§

fn from(err: DescribeTrustsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeUpdateDirectoryError> for Error

Source§

fn from(err: DescribeUpdateDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<DisableClientAuthenticationError> for Error

Source§

fn from(err: DisableClientAuthenticationError) -> Self

Converts to this type from the input type.
Source§

impl From<DisableDirectoryDataAccessError> for Error

Source§

fn from(err: DisableDirectoryDataAccessError) -> Self

Converts to this type from the input type.
Source§

impl From<DisableLDAPSError> for Error

Source§

fn from(err: DisableLDAPSError) -> Self

Converts to this type from the input type.
Source§

impl From<DisableRadiusError> for Error

Source§

fn from(err: DisableRadiusError) -> Self

Converts to this type from the input type.
Source§

impl From<DisableSsoError> for Error

Source§

fn from(err: DisableSsoError) -> Self

Converts to this type from the input type.
Source§

impl From<EnableClientAuthenticationError> for Error

Source§

fn from(err: EnableClientAuthenticationError) -> Self

Converts to this type from the input type.
Source§

impl From<EnableDirectoryDataAccessError> for Error

Source§

fn from(err: EnableDirectoryDataAccessError) -> Self

Converts to this type from the input type.
Source§

impl From<EnableLDAPSError> for Error

Source§

fn from(err: EnableLDAPSError) -> Self

Converts to this type from the input type.
Source§

impl From<EnableRadiusError> for Error

Source§

fn from(err: EnableRadiusError) -> Self

Converts to this type from the input type.
Source§

impl From<EnableSsoError> for Error

Source§

fn from(err: EnableSsoError) -> Self

Converts to this type from the input type.
Source§

impl From<GetDirectoryLimitsError> for Error

Source§

fn from(err: GetDirectoryLimitsError) -> Self

Converts to this type from the input type.
Source§

impl From<GetSnapshotLimitsError> for Error

Source§

fn from(err: GetSnapshotLimitsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListCertificatesError> for Error

Source§

fn from(err: ListCertificatesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListIpRoutesError> for Error

Source§

fn from(err: ListIpRoutesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListLogSubscriptionsError> for Error

Source§

fn from(err: ListLogSubscriptionsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListSchemaExtensionsError> for Error

Source§

fn from(err: ListSchemaExtensionsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTagsForResourceError> for Error

Source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterCertificateError> for Error

Source§

fn from(err: RegisterCertificateError) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterEventTopicError> for Error

Source§

fn from(err: RegisterEventTopicError) -> Self

Converts to this type from the input type.
Source§

impl From<RejectSharedDirectoryError> for Error

Source§

fn from(err: RejectSharedDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveIpRoutesError> for Error

Source§

fn from(err: RemoveIpRoutesError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveRegionError> for Error

Source§

fn from(err: RemoveRegionError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveTagsFromResourceError> for Error

Source§

fn from(err: RemoveTagsFromResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<ResetUserPasswordError> for Error

Source§

fn from(err: ResetUserPasswordError) -> Self

Converts to this type from the input type.
Source§

impl From<RestoreFromSnapshotError> for Error

Source§

fn from(err: RestoreFromSnapshotError) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<AcceptSharedDirectoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<AcceptSharedDirectoryError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<AddIpRoutesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<AddIpRoutesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<AddRegionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<AddRegionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<AddTagsToResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<AddTagsToResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CancelSchemaExtensionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CancelSchemaExtensionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ConnectDirectoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ConnectDirectoryError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateAliasError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateAliasError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateComputerError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateComputerError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateConditionalForwarderError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateConditionalForwarderError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateDirectoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateDirectoryError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateLogSubscriptionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateLogSubscriptionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateMicrosoftADError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateMicrosoftADError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateSnapshotError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateSnapshotError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateTrustError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateTrustError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteConditionalForwarderError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteConditionalForwarderError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteDirectoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteDirectoryError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteLogSubscriptionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteLogSubscriptionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteSnapshotError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteSnapshotError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteTrustError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteTrustError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeregisterCertificateError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeregisterCertificateError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeregisterEventTopicError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeregisterEventTopicError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeCertificateError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeCertificateError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeClientAuthenticationSettingsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeClientAuthenticationSettingsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeConditionalForwardersError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeConditionalForwardersError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeDirectoriesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeDirectoriesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeDirectoryDataAccessError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeDirectoryDataAccessError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeDomainControllersError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeDomainControllersError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeEventTopicsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeEventTopicsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeLDAPSSettingsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeLDAPSSettingsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeRegionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeRegionsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeSettingsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeSettingsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeSharedDirectoriesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeSharedDirectoriesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeSnapshotsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeSnapshotsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeTrustsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeTrustsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeUpdateDirectoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeUpdateDirectoryError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DisableClientAuthenticationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DisableClientAuthenticationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DisableDirectoryDataAccessError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DisableDirectoryDataAccessError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DisableLDAPSError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DisableLDAPSError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DisableRadiusError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DisableRadiusError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DisableSsoError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DisableSsoError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<EnableClientAuthenticationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<EnableClientAuthenticationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<EnableDirectoryDataAccessError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<EnableDirectoryDataAccessError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<EnableLDAPSError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<EnableLDAPSError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<EnableRadiusError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<EnableRadiusError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<EnableSsoError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<EnableSsoError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetDirectoryLimitsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetDirectoryLimitsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetSnapshotLimitsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetSnapshotLimitsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListCertificatesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListCertificatesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListIpRoutesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListIpRoutesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListLogSubscriptionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListLogSubscriptionsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListSchemaExtensionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListSchemaExtensionsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListTagsForResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RegisterCertificateError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RegisterCertificateError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RegisterEventTopicError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RegisterEventTopicError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RejectSharedDirectoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RejectSharedDirectoryError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RemoveIpRoutesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RemoveIpRoutesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RemoveRegionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RemoveRegionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RemoveTagsFromResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RemoveTagsFromResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ResetUserPasswordError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ResetUserPasswordError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RestoreFromSnapshotError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RestoreFromSnapshotError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ShareDirectoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ShareDirectoryError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<StartSchemaExtensionError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<StartSchemaExtensionError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UnshareDirectoryError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UnshareDirectoryError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateConditionalForwarderError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateConditionalForwarderError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateDirectorySetupError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateDirectorySetupError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateNumberOfDomainControllersError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateNumberOfDomainControllersError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateRadiusError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateRadiusError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateSettingsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateSettingsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateTrustError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateTrustError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<VerifyTrustError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<VerifyTrustError, R>) -> Self

Converts to this type from the input type.
Source§

impl From<ShareDirectoryError> for Error

Source§

fn from(err: ShareDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<StartSchemaExtensionError> for Error

Source§

fn from(err: StartSchemaExtensionError) -> Self

Converts to this type from the input type.
Source§

impl From<UnshareDirectoryError> for Error

Source§

fn from(err: UnshareDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateConditionalForwarderError> for Error

Source§

fn from(err: UpdateConditionalForwarderError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDirectorySetupError> for Error

Source§

fn from(err: UpdateDirectorySetupError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateNumberOfDomainControllersError> for Error

Source§

fn from(err: UpdateNumberOfDomainControllersError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateRadiusError> for Error

Source§

fn from(err: UpdateRadiusError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSettingsError> for Error

Source§

fn from(err: UpdateSettingsError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateTrustError> for Error

Source§

fn from(err: UpdateTrustError) -> Self

Converts to this type from the input type.
Source§

impl From<VerifyTrustError> for Error

Source§

fn from(err: VerifyTrustError) -> Self

Converts to this type from the input type.
Source§

impl ProvideErrorMetadata for Error

Source§

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
Source§

fn code(&self) -> Option<&str>

Returns the error code if it’s available.
Source§

fn message(&self) -> Option<&str>

Returns the error message, if there is one.
Source§

impl RequestId for Error

Source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Paint for T
where T: ?Sized,

Source§

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 primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
Source§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
Source§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
Source§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
Source§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
Source§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
Source§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
Source§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
Source§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
Source§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
Source§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
Source§

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>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
Source§

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>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
Source§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
Source§

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>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
Source§

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>

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>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
Source§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
Source§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
Source§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
Source§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
Source§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
Source§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
Source§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
Source§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
Source§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
Source§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
Source§

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>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
Source§

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>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
Source§

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>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
Source§

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>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
Source§

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 bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
Source§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
Source§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
Source§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
Source§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
Source§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
Source§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
Source§

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 mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
Source§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
Source§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
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.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
Source§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
Source§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
Source§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
Source§

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);
Source§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new Painted with a default Style. Read more
Source§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,