#[non_exhaustive]
pub enum Error {
Show 54 variants AclAlreadyExistsFault(AclAlreadyExistsFault), AclNotFoundFault(AclNotFoundFault), AclQuotaExceededFault(AclQuotaExceededFault), ApiCallRateForCustomerExceededFault(ApiCallRateForCustomerExceededFault), ClusterAlreadyExistsFault(ClusterAlreadyExistsFault), ClusterNotFoundFault(ClusterNotFoundFault), ClusterQuotaForCustomerExceededFault(ClusterQuotaForCustomerExceededFault), DefaultUserRequired(DefaultUserRequired), DuplicateUserNameFault(DuplicateUserNameFault), InsufficientClusterCapacityFault(InsufficientClusterCapacityFault), InvalidAclStateFault(InvalidAclStateFault), InvalidArnFault(InvalidArnFault), InvalidClusterStateFault(InvalidClusterStateFault), InvalidCredentialsException(InvalidCredentialsException), InvalidKmsKeyFault(InvalidKmsKeyFault), InvalidNodeStateFault(InvalidNodeStateFault), InvalidParameterCombinationException(InvalidParameterCombinationException), InvalidParameterGroupStateFault(InvalidParameterGroupStateFault), InvalidParameterValueException(InvalidParameterValueException), InvalidSnapshotStateFault(InvalidSnapshotStateFault), InvalidSubnet(InvalidSubnet), InvalidUserStateFault(InvalidUserStateFault), InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault), NoOperationFault(NoOperationFault), NodeQuotaForClusterExceededFault(NodeQuotaForClusterExceededFault), NodeQuotaForCustomerExceededFault(NodeQuotaForCustomerExceededFault), ParameterGroupAlreadyExistsFault(ParameterGroupAlreadyExistsFault), ParameterGroupNotFoundFault(ParameterGroupNotFoundFault), ParameterGroupQuotaExceededFault(ParameterGroupQuotaExceededFault), ReservedNodeAlreadyExistsFault(ReservedNodeAlreadyExistsFault), ReservedNodeNotFoundFault(ReservedNodeNotFoundFault), ReservedNodeQuotaExceededFault(ReservedNodeQuotaExceededFault), ReservedNodesOfferingNotFoundFault(ReservedNodesOfferingNotFoundFault), ServiceLinkedRoleNotFoundFault(ServiceLinkedRoleNotFoundFault), ServiceUpdateNotFoundFault(ServiceUpdateNotFoundFault), ShardNotFoundFault(ShardNotFoundFault), ShardsPerClusterQuotaExceededFault(ShardsPerClusterQuotaExceededFault), SnapshotAlreadyExistsFault(SnapshotAlreadyExistsFault), SnapshotNotFoundFault(SnapshotNotFoundFault), SnapshotQuotaExceededFault(SnapshotQuotaExceededFault), SubnetGroupAlreadyExistsFault(SubnetGroupAlreadyExistsFault), SubnetGroupInUseFault(SubnetGroupInUseFault), SubnetGroupNotFoundFault(SubnetGroupNotFoundFault), SubnetGroupQuotaExceededFault(SubnetGroupQuotaExceededFault), SubnetInUse(SubnetInUse), SubnetNotAllowedFault(SubnetNotAllowedFault), SubnetQuotaExceededFault(SubnetQuotaExceededFault), TagNotFoundFault(TagNotFoundFault), TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded), TestFailoverNotAvailableFault(TestFailoverNotAvailableFault), UserAlreadyExistsFault(UserAlreadyExistsFault), UserNotFoundFault(UserNotFoundFault), UserQuotaExceededFault(UserQuotaExceededFault), 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.
§

AclAlreadyExistsFault(AclAlreadyExistsFault)

§

AclNotFoundFault(AclNotFoundFault)

§

AclQuotaExceededFault(AclQuotaExceededFault)

§

ApiCallRateForCustomerExceededFault(ApiCallRateForCustomerExceededFault)

§

ClusterAlreadyExistsFault(ClusterAlreadyExistsFault)

§

ClusterNotFoundFault(ClusterNotFoundFault)

§

ClusterQuotaForCustomerExceededFault(ClusterQuotaForCustomerExceededFault)

§

DefaultUserRequired(DefaultUserRequired)

§

DuplicateUserNameFault(DuplicateUserNameFault)

§

InsufficientClusterCapacityFault(InsufficientClusterCapacityFault)

§

InvalidAclStateFault(InvalidAclStateFault)

§

InvalidArnFault(InvalidArnFault)

§

InvalidClusterStateFault(InvalidClusterStateFault)

§

InvalidCredentialsException(InvalidCredentialsException)

§

InvalidKmsKeyFault(InvalidKmsKeyFault)

§

InvalidNodeStateFault(InvalidNodeStateFault)

§

InvalidParameterCombinationException(InvalidParameterCombinationException)

§

InvalidParameterGroupStateFault(InvalidParameterGroupStateFault)

§

InvalidParameterValueException(InvalidParameterValueException)

§

InvalidSnapshotStateFault(InvalidSnapshotStateFault)

§

InvalidSubnet(InvalidSubnet)

§

InvalidUserStateFault(InvalidUserStateFault)

§

InvalidVpcNetworkStateFault(InvalidVpcNetworkStateFault)

§

NoOperationFault(NoOperationFault)

§

NodeQuotaForClusterExceededFault(NodeQuotaForClusterExceededFault)

§

NodeQuotaForCustomerExceededFault(NodeQuotaForCustomerExceededFault)

§

ParameterGroupAlreadyExistsFault(ParameterGroupAlreadyExistsFault)

§

ParameterGroupNotFoundFault(ParameterGroupNotFoundFault)

§

ParameterGroupQuotaExceededFault(ParameterGroupQuotaExceededFault)

§

ReservedNodeAlreadyExistsFault(ReservedNodeAlreadyExistsFault)

You already have a reservation with the given identifier.

§

ReservedNodeNotFoundFault(ReservedNodeNotFoundFault)

The requested node does not exist.

§

ReservedNodeQuotaExceededFault(ReservedNodeQuotaExceededFault)

The request cannot be processed because it would exceed the user's node quota.

§

ReservedNodesOfferingNotFoundFault(ReservedNodesOfferingNotFoundFault)

The requested node offering does not exist.

§

ServiceLinkedRoleNotFoundFault(ServiceLinkedRoleNotFoundFault)

§

ServiceUpdateNotFoundFault(ServiceUpdateNotFoundFault)

§

ShardNotFoundFault(ShardNotFoundFault)

§

ShardsPerClusterQuotaExceededFault(ShardsPerClusterQuotaExceededFault)

§

SnapshotAlreadyExistsFault(SnapshotAlreadyExistsFault)

§

SnapshotNotFoundFault(SnapshotNotFoundFault)

§

SnapshotQuotaExceededFault(SnapshotQuotaExceededFault)

§

SubnetGroupAlreadyExistsFault(SubnetGroupAlreadyExistsFault)

§

SubnetGroupInUseFault(SubnetGroupInUseFault)

§

SubnetGroupNotFoundFault(SubnetGroupNotFoundFault)

§

SubnetGroupQuotaExceededFault(SubnetGroupQuotaExceededFault)

§

SubnetInUse(SubnetInUse)

§

SubnetNotAllowedFault(SubnetNotAllowedFault)

§

SubnetQuotaExceededFault(SubnetQuotaExceededFault)

§

TagNotFoundFault(TagNotFoundFault)

§

TagQuotaPerResourceExceeded(TagQuotaPerResourceExceeded)

§

TestFailoverNotAvailableFault(TestFailoverNotAvailableFault)

§

UserAlreadyExistsFault(UserAlreadyExistsFault)

§

UserNotFoundFault(UserNotFoundFault)

§

UserQuotaExceededFault(UserQuotaExceededFault)

§

Unhandled(Unhandled)

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)>

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, demand: &mut Demand<'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<BatchUpdateClusterError> for Error

source§

fn from(err: BatchUpdateClusterError) -> Self

Converts to this type from the input type.
source§

impl From<CopySnapshotError> for Error

source§

fn from(err: CopySnapshotError) -> Self

Converts to this type from the input type.
source§

impl From<CreateACLError> for Error

source§

fn from(err: CreateACLError) -> Self

Converts to this type from the input type.
source§

impl From<CreateClusterError> for Error

source§

fn from(err: CreateClusterError) -> Self

Converts to this type from the input type.
source§

impl From<CreateParameterGroupError> for Error

source§

fn from(err: CreateParameterGroupError) -> 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<CreateSubnetGroupError> for Error

source§

fn from(err: CreateSubnetGroupError) -> Self

Converts to this type from the input type.
source§

impl From<CreateUserError> for Error

source§

fn from(err: CreateUserError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteACLError> for Error

source§

fn from(err: DeleteACLError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteClusterError> for Error

source§

fn from(err: DeleteClusterError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteParameterGroupError> for Error

source§

fn from(err: DeleteParameterGroupError) -> 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<DeleteSubnetGroupError> for Error

source§

fn from(err: DeleteSubnetGroupError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteUserError> for Error

source§

fn from(err: DeleteUserError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeACLsError> for Error

source§

fn from(err: DescribeACLsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeClustersError> for Error

source§

fn from(err: DescribeClustersError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeEngineVersionsError> for Error

source§

fn from(err: DescribeEngineVersionsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeEventsError> for Error

source§

fn from(err: DescribeEventsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeParameterGroupsError> for Error

source§

fn from(err: DescribeParameterGroupsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeParametersError> for Error

source§

fn from(err: DescribeParametersError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeReservedNodesError> for Error

source§

fn from(err: DescribeReservedNodesError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeReservedNodesOfferingsError> for Error

source§

fn from(err: DescribeReservedNodesOfferingsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeServiceUpdatesError> for Error

source§

fn from(err: DescribeServiceUpdatesError) -> 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<DescribeSubnetGroupsError> for Error

source§

fn from(err: DescribeSubnetGroupsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeUsersError> for Error

source§

fn from(err: DescribeUsersError) -> Self

Converts to this type from the input type.
source§

impl From<FailoverShardError> for Error

source§

fn from(err: FailoverShardError) -> Self

Converts to this type from the input type.
source§

impl From<ListAllowedNodeTypeUpdatesError> for Error

source§

fn from(err: ListAllowedNodeTypeUpdatesError) -> Self

Converts to this type from the input type.
source§

impl From<ListTagsError> for Error

source§

fn from(err: ListTagsError) -> Self

Converts to this type from the input type.
source§

impl From<PurchaseReservedNodesOfferingError> for Error

source§

fn from(err: PurchaseReservedNodesOfferingError) -> Self

Converts to this type from the input type.
source§

impl From<ResetParameterGroupError> for Error

source§

fn from(err: ResetParameterGroupError) -> Self

Converts to this type from the input type.
source§

impl<R> From<SdkError<BatchUpdateClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CopySnapshotError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateACLError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateParameterGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateSnapshotError, R>> for Errorwhere 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<CreateSubnetGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<CreateUserError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteACLError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteParameterGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteSnapshotError, R>> for Errorwhere 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<DeleteSubnetGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DeleteUserError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeACLsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeClustersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeEngineVersionsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeEventsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeParameterGroupsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeParametersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeReservedNodesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeReservedNodesOfferingsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeServiceUpdatesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeSnapshotsError, R>> for Errorwhere 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<DescribeSubnetGroupsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<DescribeUsersError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<FailoverShardError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListAllowedNodeTypeUpdatesError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ListTagsError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<PurchaseReservedNodesOfferingError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<ResetParameterGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<TagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UntagResourceError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateACLError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateClusterError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateParameterGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateSubnetGroupError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl<R> From<SdkError<UpdateUserError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl From<TagResourceError> for Error

source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UntagResourceError> for Error

source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateACLError> for Error

source§

fn from(err: UpdateACLError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateClusterError> for Error

source§

fn from(err: UpdateClusterError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateParameterGroupError> for Error

source§

fn from(err: UpdateParameterGroupError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateSubnetGroupError> for Error

source§

fn from(err: UpdateSubnetGroupError) -> Self

Converts to this type from the input type.
source§

impl From<UpdateUserError> for Error

source§

fn from(err: UpdateUserError) -> Self

Converts to this type from the input type.
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 !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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere 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 Twhere 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<E> Provider for Ewhere E: Error + ?Sized,

source§

fn provide<'a>(&'a self, demand: &mut Demand<'a>)

🔬This is a nightly-only experimental API. (provide_any)
Data providers should implement this method to provide all values they are able to provide by using demand. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

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

source§

default fn to_string(&self) -> String

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

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

§

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 Twhere U: TryFrom<T>,

§

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