Enum aws_sdk_ecr::Error

source ·
#[non_exhaustive]
pub enum Error {
Show 34 variants EmptyUploadException(EmptyUploadException), ImageAlreadyExistsException(ImageAlreadyExistsException), ImageDigestDoesNotMatchException(ImageDigestDoesNotMatchException), ImageNotFoundException(ImageNotFoundException), ImageTagAlreadyExistsException(ImageTagAlreadyExistsException), InvalidLayerException(InvalidLayerException), InvalidLayerPartException(InvalidLayerPartException), InvalidParameterException(InvalidParameterException), InvalidTagParameterException(InvalidTagParameterException), KmsException(KmsException), LayerAlreadyExistsException(LayerAlreadyExistsException), LayerInaccessibleException(LayerInaccessibleException), LayerPartTooSmallException(LayerPartTooSmallException), LayersNotFoundException(LayersNotFoundException), LifecyclePolicyNotFoundException(LifecyclePolicyNotFoundException), LifecyclePolicyPreviewInProgressException(LifecyclePolicyPreviewInProgressException), LifecyclePolicyPreviewNotFoundException(LifecyclePolicyPreviewNotFoundException), LimitExceededException(LimitExceededException), PullThroughCacheRuleAlreadyExistsException(PullThroughCacheRuleAlreadyExistsException), PullThroughCacheRuleNotFoundException(PullThroughCacheRuleNotFoundException), ReferencedImagesNotFoundException(ReferencedImagesNotFoundException), RegistryPolicyNotFoundException(RegistryPolicyNotFoundException), RepositoryAlreadyExistsException(RepositoryAlreadyExistsException), RepositoryNotEmptyException(RepositoryNotEmptyException), RepositoryNotFoundException(RepositoryNotFoundException), RepositoryPolicyNotFoundException(RepositoryPolicyNotFoundException), ScanNotFoundException(ScanNotFoundException), ServerException(ServerException), TooManyTagsException(TooManyTagsException), UnsupportedImageTypeException(UnsupportedImageTypeException), UnsupportedUpstreamRegistryException(UnsupportedUpstreamRegistryException), UploadNotFoundException(UploadNotFoundException), ValidationException(ValidationException), 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.
§

EmptyUploadException(EmptyUploadException)

The specified layer upload does not contain any layer parts.

§

ImageAlreadyExistsException(ImageAlreadyExistsException)

The specified image has already been pushed, and there were no changes to the manifest or image tag after the last push.

§

ImageDigestDoesNotMatchException(ImageDigestDoesNotMatchException)

The specified image digest does not match the digest that Amazon ECR calculated for the image.

§

ImageNotFoundException(ImageNotFoundException)

The image requested does not exist in the specified repository.

§

ImageTagAlreadyExistsException(ImageTagAlreadyExistsException)

The specified image is tagged with a tag that already exists. The repository is configured for tag immutability.

§

InvalidLayerException(InvalidLayerException)

The layer digest calculation performed by Amazon ECR upon receipt of the image layer does not match the digest specified.

§

InvalidLayerPartException(InvalidLayerPartException)

The layer part size is not valid, or the first byte specified is not consecutive to the last byte of a previous layer part upload.

§

InvalidParameterException(InvalidParameterException)

The specified parameter is invalid. Review the available parameters for the API request.

§

InvalidTagParameterException(InvalidTagParameterException)

An invalid parameter has been specified. Tag keys can have a maximum character length of 128 characters, and tag values can have a maximum length of 256 characters.

§

KmsException(KmsException)

The operation failed due to a KMS exception.

§

LayerAlreadyExistsException(LayerAlreadyExistsException)

The image layer already exists in the associated repository.

§

LayerInaccessibleException(LayerInaccessibleException)

The specified layer is not available because it is not associated with an image. Unassociated image layers may be cleaned up at any time.

§

LayerPartTooSmallException(LayerPartTooSmallException)

Layer parts must be at least 5 MiB in size.

§

LayersNotFoundException(LayersNotFoundException)

The specified layers could not be found, or the specified layer is not valid for this repository.

§

LifecyclePolicyNotFoundException(LifecyclePolicyNotFoundException)

The lifecycle policy could not be found, and no policy is set to the repository.

§

LifecyclePolicyPreviewInProgressException(LifecyclePolicyPreviewInProgressException)

The previous lifecycle policy preview request has not completed. Wait and try again.

§

LifecyclePolicyPreviewNotFoundException(LifecyclePolicyPreviewNotFoundException)

There is no dry run for this repository.

§

LimitExceededException(LimitExceededException)

The operation did not succeed because it would have exceeded a service limit for your account. For more information, see Amazon ECR service quotas in the Amazon Elastic Container Registry User Guide.

§

PullThroughCacheRuleAlreadyExistsException(PullThroughCacheRuleAlreadyExistsException)

A pull through cache rule with these settings already exists for the private registry.

§

PullThroughCacheRuleNotFoundException(PullThroughCacheRuleNotFoundException)

The pull through cache rule was not found. Specify a valid pull through cache rule and try again.

§

ReferencedImagesNotFoundException(ReferencedImagesNotFoundException)

The manifest list is referencing an image that does not exist.

§

RegistryPolicyNotFoundException(RegistryPolicyNotFoundException)

The registry doesn't have an associated registry policy.

§

RepositoryAlreadyExistsException(RepositoryAlreadyExistsException)

The specified repository already exists in the specified registry.

§

RepositoryNotEmptyException(RepositoryNotEmptyException)

The specified repository contains images. To delete a repository that contains images, you must force the deletion with the force parameter.

§

RepositoryNotFoundException(RepositoryNotFoundException)

The specified repository could not be found. Check the spelling of the specified repository and ensure that you are performing operations on the correct registry.

§

RepositoryPolicyNotFoundException(RepositoryPolicyNotFoundException)

The specified repository and registry combination does not have an associated repository policy.

§

ScanNotFoundException(ScanNotFoundException)

The specified image scan could not be found. Ensure that image scanning is enabled on the repository and try again.

§

ServerException(ServerException)

These errors are usually caused by a server-side issue.

§

TooManyTagsException(TooManyTagsException)

The list of tags on the repository is over the limit. The maximum number of tags that can be applied to a repository is 50.

§

UnsupportedImageTypeException(UnsupportedImageTypeException)

The image is of a type that cannot be scanned.

§

UnsupportedUpstreamRegistryException(UnsupportedUpstreamRegistryException)

The specified upstream registry isn't supported.

§

UploadNotFoundException(UploadNotFoundException)

The upload could not be found, or the specified upload ID is not valid for this repository.

§

ValidationException(ValidationException)

There was an exception validating this request.

§

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

1.30.0 · 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<BatchCheckLayerAvailabilityError> for Error

source§

fn from(err: BatchCheckLayerAvailabilityError) -> Self

Converts to this type from the input type.
source§

impl From<BatchDeleteImageError> for Error

source§

fn from(err: BatchDeleteImageError) -> Self

Converts to this type from the input type.
source§

impl From<BatchGetImageError> for Error

source§

fn from(err: BatchGetImageError) -> Self

Converts to this type from the input type.
source§

impl From<BatchGetRepositoryScanningConfigurationError> for Error

source§

fn from(err: BatchGetRepositoryScanningConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<CompleteLayerUploadError> for Error

source§

fn from(err: CompleteLayerUploadError) -> Self

Converts to this type from the input type.
source§

impl From<CreatePullThroughCacheRuleError> for Error

source§

fn from(err: CreatePullThroughCacheRuleError) -> Self

Converts to this type from the input type.
source§

impl From<CreateRepositoryError> for Error

source§

fn from(err: CreateRepositoryError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteLifecyclePolicyError> for Error

source§

fn from(err: DeleteLifecyclePolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DeletePullThroughCacheRuleError> for Error

source§

fn from(err: DeletePullThroughCacheRuleError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteRegistryPolicyError> for Error

source§

fn from(err: DeleteRegistryPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteRepositoryError> for Error

source§

fn from(err: DeleteRepositoryError) -> Self

Converts to this type from the input type.
source§

impl From<DeleteRepositoryPolicyError> for Error

source§

fn from(err: DeleteRepositoryPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeImageReplicationStatusError> for Error

source§

fn from(err: DescribeImageReplicationStatusError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeImageScanFindingsError> for Error

source§

fn from(err: DescribeImageScanFindingsError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeImagesError> for Error

source§

fn from(err: DescribeImagesError) -> Self

Converts to this type from the input type.
source§

impl From<DescribePullThroughCacheRulesError> for Error

source§

fn from(err: DescribePullThroughCacheRulesError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeRegistryError> for Error

source§

fn from(err: DescribeRegistryError) -> Self

Converts to this type from the input type.
source§

impl From<DescribeRepositoriesError> for Error

source§

fn from(err: DescribeRepositoriesError) -> Self

Converts to this type from the input type.
source§

impl From<GetAuthorizationTokenError> for Error

source§

fn from(err: GetAuthorizationTokenError) -> Self

Converts to this type from the input type.
source§

impl From<GetDownloadUrlForLayerError> for Error

source§

fn from(err: GetDownloadUrlForLayerError) -> Self

Converts to this type from the input type.
source§

impl From<GetLifecyclePolicyError> for Error

source§

fn from(err: GetLifecyclePolicyError) -> Self

Converts to this type from the input type.
source§

impl From<GetLifecyclePolicyPreviewError> for Error

source§

fn from(err: GetLifecyclePolicyPreviewError) -> Self

Converts to this type from the input type.
source§

impl From<GetRegistryPolicyError> for Error

source§

fn from(err: GetRegistryPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<GetRegistryScanningConfigurationError> for Error

source§

fn from(err: GetRegistryScanningConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<GetRepositoryPolicyError> for Error

source§

fn from(err: GetRepositoryPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<InitiateLayerUploadError> for Error

source§

fn from(err: InitiateLayerUploadError) -> Self

Converts to this type from the input type.
source§

impl From<ListImagesError> for Error

source§

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

source§

fn from(err: PutImageError) -> Self

Converts to this type from the input type.
source§

impl From<PutImageScanningConfigurationError> for Error

source§

fn from(err: PutImageScanningConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<PutImageTagMutabilityError> for Error

source§

fn from(err: PutImageTagMutabilityError) -> Self

Converts to this type from the input type.
source§

impl From<PutLifecyclePolicyError> for Error

source§

fn from(err: PutLifecyclePolicyError) -> Self

Converts to this type from the input type.
source§

impl From<PutRegistryPolicyError> for Error

source§

fn from(err: PutRegistryPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<PutRegistryScanningConfigurationError> for Error

source§

fn from(err: PutRegistryScanningConfigurationError) -> Self

Converts to this type from the input type.
source§

impl From<PutReplicationConfigurationError> for Error

source§

fn from(err: PutReplicationConfigurationError) -> Self

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

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

Converts to this type from the input type.
source§

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

source§

fn from(err: SdkError<StartLifecyclePolicyPreviewError, 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<UploadLayerPartError, R>> for Errorwhere R: Send + Sync + Debug + 'static,

source§

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

Converts to this type from the input type.
source§

impl From<SetRepositoryPolicyError> for Error

source§

fn from(err: SetRepositoryPolicyError) -> Self

Converts to this type from the input type.
source§

impl From<StartImageScanError> for Error

source§

fn from(err: StartImageScanError) -> Self

Converts to this type from the input type.
source§

impl From<StartLifecyclePolicyPreviewError> for Error

source§

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

source§

fn from(err: UploadLayerPartError) -> 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,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

const: unstable · source§

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

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · 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>,

const: unstable · 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.
const: unstable · 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.
const: unstable · 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