CloudFrontClient

Struct CloudFrontClient 

Source
pub struct CloudFrontClient { /* private fields */ }
Expand description

A client for the CloudFront API.

Implementations§

Source§

impl CloudFrontClient

Source

pub fn new(region: Region) -> CloudFrontClient

Creates a client backed by the default tokio event loop.

The client will use the default credentials provider and tls client.

Source

pub fn new_with<P, D>( request_dispatcher: D, credentials_provider: P, region: Region, ) -> CloudFrontClient
where P: ProvideAwsCredentials + Send + Sync + 'static, D: DispatchSignedRequest + Send + Sync + 'static,

Source

pub fn new_with_client(client: Client, region: Region) -> CloudFrontClient

Trait Implementations§

Source§

impl Clone for CloudFrontClient

Source§

fn clone(&self) -> CloudFrontClient

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CloudFront for CloudFrontClient

Source§

fn create_cloud_front_origin_access_identity<'life0, 'async_trait>( &'life0 self, input: CreateCloudFrontOriginAccessIdentityRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateCloudFrontOriginAccessIdentityResult, RusotoError<CreateCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new origin access identity. If you're using Amazon S3 for your origin, you can use an origin access identity to require users to access your content using a CloudFront URL instead of the Amazon S3 URL. For more information about how to use origin access identities, see Serving Private Content through CloudFront in the Amazon CloudFront Developer Guide.

Source§

fn create_distribution<'life0, 'async_trait>( &'life0 self, input: CreateDistributionRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateDistributionResult, RusotoError<CreateDistributionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new web distribution. You create a CloudFront distribution to tell CloudFront where you want content to be delivered from, and the details about how to track and manage content delivery. Send a POST request to the /CloudFront API version/distribution/distribution ID resource.

When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using UpdateDistribution, follow the steps included in the documentation to get the current configuration and then make your updates. This helps to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide.

Source§

fn create_distribution_with_tags<'life0, 'async_trait>( &'life0 self, input: CreateDistributionWithTagsRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateDistributionWithTagsResult, RusotoError<CreateDistributionWithTagsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a new distribution with tags.

Source§

fn create_field_level_encryption_config<'life0, 'async_trait>( &'life0 self, input: CreateFieldLevelEncryptionConfigRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateFieldLevelEncryptionConfigResult, RusotoError<CreateFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a new field-level encryption configuration.

Source§

fn create_field_level_encryption_profile<'life0, 'async_trait>( &'life0 self, input: CreateFieldLevelEncryptionProfileRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateFieldLevelEncryptionProfileResult, RusotoError<CreateFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a field-level encryption profile.

Source§

fn create_invalidation<'life0, 'async_trait>( &'life0 self, input: CreateInvalidationRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateInvalidationResult, RusotoError<CreateInvalidationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a new invalidation.

Source§

fn create_public_key<'life0, 'async_trait>( &'life0 self, input: CreatePublicKeyRequest, ) -> Pin<Box<dyn Future<Output = Result<CreatePublicKeyResult, RusotoError<CreatePublicKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add a new public key to CloudFront to use, for example, for field-level encryption. You can add a maximum of 10 public keys with one AWS account.

Source§

fn create_streaming_distribution<'life0, 'async_trait>( &'life0 self, input: CreateStreamingDistributionRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateStreamingDistributionResult, RusotoError<CreateStreamingDistributionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Creates a new RTMP distribution. An RTMP distribution is similar to a web distribution, but an RTMP distribution streams media files using the Adobe Real-Time Messaging Protocol (RTMP) instead of serving files using HTTP.

To create a new distribution, submit a POST request to the CloudFront API version/distribution resource. The request body must include a document with a StreamingDistributionConfig element. The response echoes the StreamingDistributionConfig element and returns other information about the RTMP distribution.

To get the status of your request, use the GET StreamingDistribution API action. When the value of Enabled is true and the value of Status is Deployed, your distribution is ready. A distribution usually deploys in less than 15 minutes.

For more information about web distributions, see Working with RTMP Distributions in the Amazon CloudFront Developer Guide.

Beginning with the 2012-05-05 version of the CloudFront API, we made substantial changes to the format of the XML document that you include in the request body when you create or update a web distribution or an RTMP distribution, and when you invalidate objects. With previous versions of the API, we discovered that it was too easy to accidentally delete one or more values for an element that accepts multiple values, for example, CNAMEs and trusted signers. Our changes for the 2012-05-05 release are intended to prevent these accidental deletions and to notify you when there's a mismatch between the number of values you say you're specifying in the Quantity element and the number of values specified.

Source§

fn create_streaming_distribution_with_tags<'life0, 'async_trait>( &'life0 self, input: CreateStreamingDistributionWithTagsRequest, ) -> Pin<Box<dyn Future<Output = Result<CreateStreamingDistributionWithTagsResult, RusotoError<CreateStreamingDistributionWithTagsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Create a new streaming distribution with tags.

Source§

fn delete_cloud_front_origin_access_identity<'life0, 'async_trait>( &'life0 self, input: DeleteCloudFrontOriginAccessIdentityRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete an origin access identity.

Source§

fn delete_distribution<'life0, 'async_trait>( &'life0 self, input: DeleteDistributionRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteDistributionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a distribution.

Source§

fn delete_field_level_encryption_config<'life0, 'async_trait>( &'life0 self, input: DeleteFieldLevelEncryptionConfigRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove a field-level encryption configuration.

Source§

fn delete_field_level_encryption_profile<'life0, 'async_trait>( &'life0 self, input: DeleteFieldLevelEncryptionProfileRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove a field-level encryption profile.

Source§

fn delete_public_key<'life0, 'async_trait>( &'life0 self, input: DeletePublicKeyRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeletePublicKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove a public key you previously added to CloudFront.

Source§

fn delete_streaming_distribution<'life0, 'async_trait>( &'life0 self, input: DeleteStreamingDistributionRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<DeleteStreamingDistributionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Delete a streaming distribution. To delete an RTMP distribution using the CloudFront API, perform the following steps.

To delete an RTMP distribution using the CloudFront API:

  1. Disable the RTMP distribution.

  2. Submit a GET Streaming Distribution Config request to get the current configuration and the Etag header for the distribution.

  3. Update the XML document that was returned in the response to your GET Streaming Distribution Config request to change the value of Enabled to false.

  4. Submit a PUT Streaming Distribution Config request to update the configuration for your distribution. In the request body, include the XML document that you updated in Step 3. Then set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2.

  5. Review the response to the PUT Streaming Distribution Config request to confirm that the distribution was successfully disabled.

  6. Submit a GET Streaming Distribution Config request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.

  7. Submit a DELETE Streaming Distribution request. Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GET Streaming Distribution Config request in Step 2.

  8. Review the response to your DELETE Streaming Distribution request to confirm that the distribution was successfully deleted.

For information about deleting a distribution using the CloudFront console, see Deleting a Distribution in the Amazon CloudFront Developer Guide.

Source§

fn get_cloud_front_origin_access_identity<'life0, 'async_trait>( &'life0 self, input: GetCloudFrontOriginAccessIdentityRequest, ) -> Pin<Box<dyn Future<Output = Result<GetCloudFrontOriginAccessIdentityResult, RusotoError<GetCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the information about an origin access identity.

Source§

fn get_cloud_front_origin_access_identity_config<'life0, 'async_trait>( &'life0 self, input: GetCloudFrontOriginAccessIdentityConfigRequest, ) -> Pin<Box<dyn Future<Output = Result<GetCloudFrontOriginAccessIdentityConfigResult, RusotoError<GetCloudFrontOriginAccessIdentityConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the configuration information about an origin access identity.

Source§

fn get_distribution<'life0, 'async_trait>( &'life0 self, input: GetDistributionRequest, ) -> Pin<Box<dyn Future<Output = Result<GetDistributionResult, RusotoError<GetDistributionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the information about a distribution.

Source§

fn get_distribution_config<'life0, 'async_trait>( &'life0 self, input: GetDistributionConfigRequest, ) -> Pin<Box<dyn Future<Output = Result<GetDistributionConfigResult, RusotoError<GetDistributionConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the configuration information about a distribution.

Source§

fn get_field_level_encryption<'life0, 'async_trait>( &'life0 self, input: GetFieldLevelEncryptionRequest, ) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionResult, RusotoError<GetFieldLevelEncryptionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the field-level encryption configuration information.

Source§

fn get_field_level_encryption_config<'life0, 'async_trait>( &'life0 self, input: GetFieldLevelEncryptionConfigRequest, ) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionConfigResult, RusotoError<GetFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the field-level encryption configuration information.

Source§

fn get_field_level_encryption_profile<'life0, 'async_trait>( &'life0 self, input: GetFieldLevelEncryptionProfileRequest, ) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionProfileResult, RusotoError<GetFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the field-level encryption profile information.

Source§

fn get_field_level_encryption_profile_config<'life0, 'async_trait>( &'life0 self, input: GetFieldLevelEncryptionProfileConfigRequest, ) -> Pin<Box<dyn Future<Output = Result<GetFieldLevelEncryptionProfileConfigResult, RusotoError<GetFieldLevelEncryptionProfileConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the field-level encryption profile configuration information.

Source§

fn get_invalidation<'life0, 'async_trait>( &'life0 self, input: GetInvalidationRequest, ) -> Pin<Box<dyn Future<Output = Result<GetInvalidationResult, RusotoError<GetInvalidationError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the information about an invalidation.

Source§

fn get_public_key<'life0, 'async_trait>( &'life0 self, input: GetPublicKeyRequest, ) -> Pin<Box<dyn Future<Output = Result<GetPublicKeyResult, RusotoError<GetPublicKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the public key information.

Source§

fn get_public_key_config<'life0, 'async_trait>( &'life0 self, input: GetPublicKeyConfigRequest, ) -> Pin<Box<dyn Future<Output = Result<GetPublicKeyConfigResult, RusotoError<GetPublicKeyConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Return public key configuration informaation

Source§

fn get_streaming_distribution<'life0, 'async_trait>( &'life0 self, input: GetStreamingDistributionRequest, ) -> Pin<Box<dyn Future<Output = Result<GetStreamingDistributionResult, RusotoError<GetStreamingDistributionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Gets information about a specified RTMP distribution, including the distribution configuration.

Source§

fn get_streaming_distribution_config<'life0, 'async_trait>( &'life0 self, input: GetStreamingDistributionConfigRequest, ) -> Pin<Box<dyn Future<Output = Result<GetStreamingDistributionConfigResult, RusotoError<GetStreamingDistributionConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Get the configuration information about a streaming distribution.

Source§

fn list_cloud_front_origin_access_identities<'life0, 'async_trait>( &'life0 self, input: ListCloudFrontOriginAccessIdentitiesRequest, ) -> Pin<Box<dyn Future<Output = Result<ListCloudFrontOriginAccessIdentitiesResult, RusotoError<ListCloudFrontOriginAccessIdentitiesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists origin access identities.

Source§

fn list_distributions<'life0, 'async_trait>( &'life0 self, input: ListDistributionsRequest, ) -> Pin<Box<dyn Future<Output = Result<ListDistributionsResult, RusotoError<ListDistributionsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List CloudFront distributions.

Source§

fn list_distributions_by_web_acl_id<'life0, 'async_trait>( &'life0 self, input: ListDistributionsByWebACLIdRequest, ) -> Pin<Box<dyn Future<Output = Result<ListDistributionsByWebACLIdResult, RusotoError<ListDistributionsByWebACLIdError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List the distributions that are associated with a specified AWS WAF web ACL.

Source§

fn list_field_level_encryption_configs<'life0, 'async_trait>( &'life0 self, input: ListFieldLevelEncryptionConfigsRequest, ) -> Pin<Box<dyn Future<Output = Result<ListFieldLevelEncryptionConfigsResult, RusotoError<ListFieldLevelEncryptionConfigsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all field-level encryption configurations that have been created in CloudFront for this account.

Source§

fn list_field_level_encryption_profiles<'life0, 'async_trait>( &'life0 self, input: ListFieldLevelEncryptionProfilesRequest, ) -> Pin<Box<dyn Future<Output = Result<ListFieldLevelEncryptionProfilesResult, RusotoError<ListFieldLevelEncryptionProfilesError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Request a list of field-level encryption profiles that have been created in CloudFront for this account.

Source§

fn list_invalidations<'life0, 'async_trait>( &'life0 self, input: ListInvalidationsRequest, ) -> Pin<Box<dyn Future<Output = Result<ListInvalidationsResult, RusotoError<ListInvalidationsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Lists invalidation batches.

Source§

fn list_public_keys<'life0, 'async_trait>( &'life0 self, input: ListPublicKeysRequest, ) -> Pin<Box<dyn Future<Output = Result<ListPublicKeysResult, RusotoError<ListPublicKeysError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List all public keys that have been added to CloudFront for this account.

Source§

fn list_streaming_distributions<'life0, 'async_trait>( &'life0 self, input: ListStreamingDistributionsRequest, ) -> Pin<Box<dyn Future<Output = Result<ListStreamingDistributionsResult, RusotoError<ListStreamingDistributionsError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List streaming distributions.

Source§

fn list_tags_for_resource<'life0, 'async_trait>( &'life0 self, input: ListTagsForResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<ListTagsForResourceResult, RusotoError<ListTagsForResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

List tags for a CloudFront resource.

Source§

fn tag_resource<'life0, 'async_trait>( &'life0 self, input: TagResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<TagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Add tags to a CloudFront resource.

Source§

fn untag_resource<'life0, 'async_trait>( &'life0 self, input: UntagResourceRequest, ) -> Pin<Box<dyn Future<Output = Result<(), RusotoError<UntagResourceError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Remove tags from a CloudFront resource.

Source§

fn update_cloud_front_origin_access_identity<'life0, 'async_trait>( &'life0 self, input: UpdateCloudFrontOriginAccessIdentityRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateCloudFrontOriginAccessIdentityResult, RusotoError<UpdateCloudFrontOriginAccessIdentityError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update an origin access identity.

Source§

fn update_distribution<'life0, 'async_trait>( &'life0 self, input: UpdateDistributionRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateDistributionResult, RusotoError<UpdateDistributionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Updates the configuration for a web distribution.

When you update a distribution, there are more required fields than when you create a distribution. When you update your distribution by using this API action, follow the steps here to get the current configuration and then make your updates, to make sure that you include all of the required fields. To view a summary, see Required Fields for Create Distribution and Update Distribution in the Amazon CloudFront Developer Guide.

The update process includes getting the current distribution configuration, updating the XML document that is returned to make your changes, and then submitting an UpdateDistribution request to make the updates.

For information about updating a distribution using the CloudFront console instead, see Creating a Distribution in the Amazon CloudFront Developer Guide.

To update a web distribution using the CloudFront API

  1. Submit a GetDistributionConfig request to get the current configuration and an Etag header for the distribution.

    If you update the distribution again, you must get a new Etag header.

  2. Update the XML document that was returned in the response to your GetDistributionConfig request to include your changes.

    When you edit the XML file, be aware of the following:

    • You must strip out the ETag parameter that is returned.

    • Additional fields are required when you update a distribution. There may be fields included in the XML file for features that you haven't configured for your distribution. This is expected and required to successfully update the distribution.

    • You can't change the value of CallerReference. If you try to change this value, CloudFront returns an IllegalUpdate error.

    • The new configuration replaces the existing configuration; the values that you specify in an UpdateDistribution request are not merged into your existing configuration. When you add, delete, or replace values in an element that allows multiple values (for example, CNAME), you must specify all of the values that you want to appear in the updated distribution. In addition, you must update the corresponding Quantity element.

  3. Submit an UpdateDistribution request to update the configuration for your distribution:

    • In the request body, include the XML document that you updated in Step 2. The request body must include an XML document with a DistributionConfig element.

    • Set the value of the HTTP If-Match header to the value of the ETag header that CloudFront returned when you submitted the GetDistributionConfig request in Step 1.

  4. Review the response to the UpdateDistribution request to confirm that the configuration was successfully updated.

  5. Optional: Submit a GetDistribution request to confirm that your changes have propagated. When propagation is complete, the value of Status is Deployed.

Source§

fn update_field_level_encryption_config<'life0, 'async_trait>( &'life0 self, input: UpdateFieldLevelEncryptionConfigRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateFieldLevelEncryptionConfigResult, RusotoError<UpdateFieldLevelEncryptionConfigError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update a field-level encryption configuration.

Source§

fn update_field_level_encryption_profile<'life0, 'async_trait>( &'life0 self, input: UpdateFieldLevelEncryptionProfileRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateFieldLevelEncryptionProfileResult, RusotoError<UpdateFieldLevelEncryptionProfileError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update a field-level encryption profile.

Source§

fn update_public_key<'life0, 'async_trait>( &'life0 self, input: UpdatePublicKeyRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdatePublicKeyResult, RusotoError<UpdatePublicKeyError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update public key information. Note that the only value you can change is the comment.

Source§

fn update_streaming_distribution<'life0, 'async_trait>( &'life0 self, input: UpdateStreamingDistributionRequest, ) -> Pin<Box<dyn Future<Output = Result<UpdateStreamingDistributionResult, RusotoError<UpdateStreamingDistributionError>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Update a streaming distribution.

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> 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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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