pub struct Client { /* private fields */ }
Expand description

Client for Amazon CloudFront

Client for invoking operations on Amazon CloudFront. Each operation on Amazon CloudFront is a method on this this struct. .send() MUST be invoked on the generated operations to dispatch the request to the service.

Constructing a Client

A Config is required to construct a client. For most use cases, the aws-config crate should be used to automatically resolve this config using aws_config::load_from_env(), since this will resolve an SdkConfig which can be shared across multiple different AWS SDK clients. This config resolution process can be customized by calling aws_config::from_env() instead, which returns a ConfigLoader that uses the builder pattern to customize the default config.

In the simplest case, creating a client looks as follows:

let config = aws_config::load_from_env().await;
let client = aws_sdk_cloudfront::Client::new(&config);

Occasionally, SDKs may have additional service-specific that can be set on the Config that is absent from SdkConfig, or slightly different settings for a specific client may be desired. The Config struct implements From<&SdkConfig>, so setting these specific settings can be done as follows:

let sdk_config = ::aws_config::load_from_env().await;
let config = aws_sdk_cloudfront::config::Builder::from(&sdk_config)
    .some_service_specific_setting("value")
    .build();

See the aws-config docs and Config for more information on customizing configuration.

Note: Client construction is expensive due to connection thread pool initialization, and should be done once at application start-up.

Using the Client

A client has a function for every operation that can be performed by the service. For example, the AssociateAlias operation has a Client::associate_alias, function which returns a builder for that operation. The fluent builder ultimately has a send() function that returns an async future that returns a result, as illustrated below:

let result = client.associate_alias()
    .target_distribution_id("example")
    .send()
    .await;

The underlying HTTP requests that get made by this can be modified with the customize_operation function on the fluent builder. See the customize module for more information.

Implementations§

source§

impl Client

source

pub fn associate_alias(&self) -> AssociateAliasFluentBuilder

Constructs a fluent builder for the AssociateAlias operation.

source§

impl Client

source

pub fn copy_distribution(&self) -> CopyDistributionFluentBuilder

Constructs a fluent builder for the CopyDistribution operation.

source§

impl Client

source

pub fn create_cache_policy(&self) -> CreateCachePolicyFluentBuilder

Constructs a fluent builder for the CreateCachePolicy operation.

source§

impl Client

source

pub fn create_cloud_front_origin_access_identity( &self ) -> CreateCloudFrontOriginAccessIdentityFluentBuilder

Constructs a fluent builder for the CreateCloudFrontOriginAccessIdentity operation.

source§

impl Client

source

pub fn create_continuous_deployment_policy( &self ) -> CreateContinuousDeploymentPolicyFluentBuilder

Constructs a fluent builder for the CreateContinuousDeploymentPolicy operation.

source§

impl Client

source

pub fn create_distribution(&self) -> CreateDistributionFluentBuilder

Constructs a fluent builder for the CreateDistribution operation.

source§

impl Client

source

pub fn create_distribution_with_tags( &self ) -> CreateDistributionWithTagsFluentBuilder

Constructs a fluent builder for the CreateDistributionWithTags operation.

source§

impl Client

source

pub fn create_field_level_encryption_config( &self ) -> CreateFieldLevelEncryptionConfigFluentBuilder

Constructs a fluent builder for the CreateFieldLevelEncryptionConfig operation.

source§

impl Client

source

pub fn create_field_level_encryption_profile( &self ) -> CreateFieldLevelEncryptionProfileFluentBuilder

Constructs a fluent builder for the CreateFieldLevelEncryptionProfile operation.

source§

impl Client

source

pub fn create_function(&self) -> CreateFunctionFluentBuilder

Constructs a fluent builder for the CreateFunction operation.

source§

impl Client

source

pub fn create_invalidation(&self) -> CreateInvalidationFluentBuilder

Constructs a fluent builder for the CreateInvalidation operation.

source§

impl Client

source

pub fn create_key_group(&self) -> CreateKeyGroupFluentBuilder

Constructs a fluent builder for the CreateKeyGroup operation.

source§

impl Client

source

pub fn create_key_value_store(&self) -> CreateKeyValueStoreFluentBuilder

Constructs a fluent builder for the CreateKeyValueStore operation.

source§

impl Client

source

pub fn create_monitoring_subscription( &self ) -> CreateMonitoringSubscriptionFluentBuilder

Constructs a fluent builder for the CreateMonitoringSubscription operation.

source§

impl Client

source

pub fn create_origin_access_control( &self ) -> CreateOriginAccessControlFluentBuilder

Constructs a fluent builder for the CreateOriginAccessControl operation.

source§

impl Client

source

pub fn create_origin_request_policy( &self ) -> CreateOriginRequestPolicyFluentBuilder

Constructs a fluent builder for the CreateOriginRequestPolicy operation.

source§

impl Client

source

pub fn create_public_key(&self) -> CreatePublicKeyFluentBuilder

Constructs a fluent builder for the CreatePublicKey operation.

source§

impl Client

source

pub fn create_realtime_log_config(&self) -> CreateRealtimeLogConfigFluentBuilder

Constructs a fluent builder for the CreateRealtimeLogConfig operation.

source§

impl Client

source

pub fn create_response_headers_policy( &self ) -> CreateResponseHeadersPolicyFluentBuilder

Constructs a fluent builder for the CreateResponseHeadersPolicy operation.

source§

impl Client

source

pub fn create_streaming_distribution( &self ) -> CreateStreamingDistributionFluentBuilder

Constructs a fluent builder for the CreateStreamingDistribution operation.

source§

impl Client

source

pub fn create_streaming_distribution_with_tags( &self ) -> CreateStreamingDistributionWithTagsFluentBuilder

Constructs a fluent builder for the CreateStreamingDistributionWithTags operation.

source§

impl Client

source

pub fn delete_cache_policy(&self) -> DeleteCachePolicyFluentBuilder

Constructs a fluent builder for the DeleteCachePolicy operation.

source§

impl Client

source

pub fn delete_cloud_front_origin_access_identity( &self ) -> DeleteCloudFrontOriginAccessIdentityFluentBuilder

Constructs a fluent builder for the DeleteCloudFrontOriginAccessIdentity operation.

source§

impl Client

source

pub fn delete_continuous_deployment_policy( &self ) -> DeleteContinuousDeploymentPolicyFluentBuilder

Constructs a fluent builder for the DeleteContinuousDeploymentPolicy operation.

source§

impl Client

source

pub fn delete_distribution(&self) -> DeleteDistributionFluentBuilder

Constructs a fluent builder for the DeleteDistribution operation.

source§

impl Client

source

pub fn delete_field_level_encryption_config( &self ) -> DeleteFieldLevelEncryptionConfigFluentBuilder

Constructs a fluent builder for the DeleteFieldLevelEncryptionConfig operation.

source§

impl Client

source

pub fn delete_field_level_encryption_profile( &self ) -> DeleteFieldLevelEncryptionProfileFluentBuilder

Constructs a fluent builder for the DeleteFieldLevelEncryptionProfile operation.

source§

impl Client

source

pub fn delete_function(&self) -> DeleteFunctionFluentBuilder

Constructs a fluent builder for the DeleteFunction operation.

source§

impl Client

source

pub fn delete_key_group(&self) -> DeleteKeyGroupFluentBuilder

Constructs a fluent builder for the DeleteKeyGroup operation.

source§

impl Client

source

pub fn delete_key_value_store(&self) -> DeleteKeyValueStoreFluentBuilder

Constructs a fluent builder for the DeleteKeyValueStore operation.

source§

impl Client

source

pub fn delete_monitoring_subscription( &self ) -> DeleteMonitoringSubscriptionFluentBuilder

Constructs a fluent builder for the DeleteMonitoringSubscription operation.

source§

impl Client

source

pub fn delete_origin_access_control( &self ) -> DeleteOriginAccessControlFluentBuilder

Constructs a fluent builder for the DeleteOriginAccessControl operation.

source§

impl Client

source

pub fn delete_origin_request_policy( &self ) -> DeleteOriginRequestPolicyFluentBuilder

Constructs a fluent builder for the DeleteOriginRequestPolicy operation.

source§

impl Client

source

pub fn delete_public_key(&self) -> DeletePublicKeyFluentBuilder

Constructs a fluent builder for the DeletePublicKey operation.

source§

impl Client

source

pub fn delete_realtime_log_config(&self) -> DeleteRealtimeLogConfigFluentBuilder

Constructs a fluent builder for the DeleteRealtimeLogConfig operation.

source§

impl Client

source

pub fn delete_response_headers_policy( &self ) -> DeleteResponseHeadersPolicyFluentBuilder

Constructs a fluent builder for the DeleteResponseHeadersPolicy operation.

source§

impl Client

source

pub fn delete_streaming_distribution( &self ) -> DeleteStreamingDistributionFluentBuilder

Constructs a fluent builder for the DeleteStreamingDistribution operation.

source§

impl Client

source

pub fn describe_function(&self) -> DescribeFunctionFluentBuilder

Constructs a fluent builder for the DescribeFunction operation.

source§

impl Client

source

pub fn describe_key_value_store(&self) -> DescribeKeyValueStoreFluentBuilder

Constructs a fluent builder for the DescribeKeyValueStore operation.

source§

impl Client

source

pub fn get_cache_policy(&self) -> GetCachePolicyFluentBuilder

Constructs a fluent builder for the GetCachePolicy operation.

source§

impl Client

source

pub fn get_cache_policy_config(&self) -> GetCachePolicyConfigFluentBuilder

Constructs a fluent builder for the GetCachePolicyConfig operation.

source§

impl Client

source

pub fn get_cloud_front_origin_access_identity( &self ) -> GetCloudFrontOriginAccessIdentityFluentBuilder

Constructs a fluent builder for the GetCloudFrontOriginAccessIdentity operation.

source§

impl Client

source

pub fn get_cloud_front_origin_access_identity_config( &self ) -> GetCloudFrontOriginAccessIdentityConfigFluentBuilder

Constructs a fluent builder for the GetCloudFrontOriginAccessIdentityConfig operation.

source§

impl Client

source

pub fn get_continuous_deployment_policy( &self ) -> GetContinuousDeploymentPolicyFluentBuilder

Constructs a fluent builder for the GetContinuousDeploymentPolicy operation.

source§

impl Client

source

pub fn get_continuous_deployment_policy_config( &self ) -> GetContinuousDeploymentPolicyConfigFluentBuilder

Constructs a fluent builder for the GetContinuousDeploymentPolicyConfig operation.

source§

impl Client

source

pub fn get_distribution(&self) -> GetDistributionFluentBuilder

Constructs a fluent builder for the GetDistribution operation.

source§

impl Client

source

pub fn get_distribution_config(&self) -> GetDistributionConfigFluentBuilder

Constructs a fluent builder for the GetDistributionConfig operation.

source§

impl Client

source

pub fn get_field_level_encryption(&self) -> GetFieldLevelEncryptionFluentBuilder

Constructs a fluent builder for the GetFieldLevelEncryption operation.

source§

impl Client

source

pub fn get_field_level_encryption_config( &self ) -> GetFieldLevelEncryptionConfigFluentBuilder

Constructs a fluent builder for the GetFieldLevelEncryptionConfig operation.

source§

impl Client

source

pub fn get_field_level_encryption_profile( &self ) -> GetFieldLevelEncryptionProfileFluentBuilder

Constructs a fluent builder for the GetFieldLevelEncryptionProfile operation.

source§

impl Client

source

pub fn get_field_level_encryption_profile_config( &self ) -> GetFieldLevelEncryptionProfileConfigFluentBuilder

Constructs a fluent builder for the GetFieldLevelEncryptionProfileConfig operation.

source§

impl Client

source

pub fn get_function(&self) -> GetFunctionFluentBuilder

Constructs a fluent builder for the GetFunction operation.

source§

impl Client

source

pub fn get_invalidation(&self) -> GetInvalidationFluentBuilder

Constructs a fluent builder for the GetInvalidation operation.

source§

impl Client

source

pub fn get_key_group(&self) -> GetKeyGroupFluentBuilder

Constructs a fluent builder for the GetKeyGroup operation.

source§

impl Client

source

pub fn get_key_group_config(&self) -> GetKeyGroupConfigFluentBuilder

Constructs a fluent builder for the GetKeyGroupConfig operation.

source§

impl Client

source

pub fn get_monitoring_subscription( &self ) -> GetMonitoringSubscriptionFluentBuilder

Constructs a fluent builder for the GetMonitoringSubscription operation.

source§

impl Client

source

pub fn get_origin_access_control(&self) -> GetOriginAccessControlFluentBuilder

Constructs a fluent builder for the GetOriginAccessControl operation.

source§

impl Client

source

pub fn get_origin_access_control_config( &self ) -> GetOriginAccessControlConfigFluentBuilder

Constructs a fluent builder for the GetOriginAccessControlConfig operation.

source§

impl Client

source

pub fn get_origin_request_policy(&self) -> GetOriginRequestPolicyFluentBuilder

Constructs a fluent builder for the GetOriginRequestPolicy operation.

source§

impl Client

source

pub fn get_origin_request_policy_config( &self ) -> GetOriginRequestPolicyConfigFluentBuilder

Constructs a fluent builder for the GetOriginRequestPolicyConfig operation.

source§

impl Client

source

pub fn get_public_key(&self) -> GetPublicKeyFluentBuilder

Constructs a fluent builder for the GetPublicKey operation.

source§

impl Client

source

pub fn get_public_key_config(&self) -> GetPublicKeyConfigFluentBuilder

Constructs a fluent builder for the GetPublicKeyConfig operation.

source§

impl Client

source

pub fn get_realtime_log_config(&self) -> GetRealtimeLogConfigFluentBuilder

Constructs a fluent builder for the GetRealtimeLogConfig operation.

source§

impl Client

source

pub fn get_response_headers_policy( &self ) -> GetResponseHeadersPolicyFluentBuilder

Constructs a fluent builder for the GetResponseHeadersPolicy operation.

source§

impl Client

source

pub fn get_response_headers_policy_config( &self ) -> GetResponseHeadersPolicyConfigFluentBuilder

Constructs a fluent builder for the GetResponseHeadersPolicyConfig operation.

source§

impl Client

source

pub fn get_streaming_distribution( &self ) -> GetStreamingDistributionFluentBuilder

Constructs a fluent builder for the GetStreamingDistribution operation.

source§

impl Client

source

pub fn get_streaming_distribution_config( &self ) -> GetStreamingDistributionConfigFluentBuilder

Constructs a fluent builder for the GetStreamingDistributionConfig operation.

source§

impl Client

source

pub fn list_cache_policies(&self) -> ListCachePoliciesFluentBuilder

Constructs a fluent builder for the ListCachePolicies operation.

source§

impl Client

source

pub fn list_cloud_front_origin_access_identities( &self ) -> ListCloudFrontOriginAccessIdentitiesFluentBuilder

Constructs a fluent builder for the ListCloudFrontOriginAccessIdentities operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_conflicting_aliases(&self) -> ListConflictingAliasesFluentBuilder

Constructs a fluent builder for the ListConflictingAliases operation.

source§

impl Client

source

pub fn list_continuous_deployment_policies( &self ) -> ListContinuousDeploymentPoliciesFluentBuilder

Constructs a fluent builder for the ListContinuousDeploymentPolicies operation.

source§

impl Client

source

pub fn list_distributions(&self) -> ListDistributionsFluentBuilder

Constructs a fluent builder for the ListDistributions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_distributions_by_cache_policy_id( &self ) -> ListDistributionsByCachePolicyIdFluentBuilder

Constructs a fluent builder for the ListDistributionsByCachePolicyId operation.

source§

impl Client

source

pub fn list_distributions_by_key_group( &self ) -> ListDistributionsByKeyGroupFluentBuilder

Constructs a fluent builder for the ListDistributionsByKeyGroup operation.

source§

impl Client

source

pub fn list_distributions_by_origin_request_policy_id( &self ) -> ListDistributionsByOriginRequestPolicyIdFluentBuilder

Constructs a fluent builder for the ListDistributionsByOriginRequestPolicyId operation.

source§

impl Client

source

pub fn list_distributions_by_realtime_log_config( &self ) -> ListDistributionsByRealtimeLogConfigFluentBuilder

Constructs a fluent builder for the ListDistributionsByRealtimeLogConfig operation.

source§

impl Client

source

pub fn list_distributions_by_response_headers_policy_id( &self ) -> ListDistributionsByResponseHeadersPolicyIdFluentBuilder

Constructs a fluent builder for the ListDistributionsByResponseHeadersPolicyId operation.

source§

impl Client

source

pub fn list_distributions_by_web_acl_id( &self ) -> ListDistributionsByWebACLIdFluentBuilder

Constructs a fluent builder for the ListDistributionsByWebACLId operation.

source§

impl Client

source

pub fn list_field_level_encryption_configs( &self ) -> ListFieldLevelEncryptionConfigsFluentBuilder

Constructs a fluent builder for the ListFieldLevelEncryptionConfigs operation.

source§

impl Client

source

pub fn list_field_level_encryption_profiles( &self ) -> ListFieldLevelEncryptionProfilesFluentBuilder

Constructs a fluent builder for the ListFieldLevelEncryptionProfiles operation.

source§

impl Client

source

pub fn list_functions(&self) -> ListFunctionsFluentBuilder

Constructs a fluent builder for the ListFunctions operation.

source§

impl Client

source

pub fn list_invalidations(&self) -> ListInvalidationsFluentBuilder

Constructs a fluent builder for the ListInvalidations operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_key_groups(&self) -> ListKeyGroupsFluentBuilder

Constructs a fluent builder for the ListKeyGroups operation.

source§

impl Client

source

pub fn list_key_value_stores(&self) -> ListKeyValueStoresFluentBuilder

Constructs a fluent builder for the ListKeyValueStores operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_origin_access_controls( &self ) -> ListOriginAccessControlsFluentBuilder

Constructs a fluent builder for the ListOriginAccessControls operation.

source§

impl Client

source

pub fn list_origin_request_policies( &self ) -> ListOriginRequestPoliciesFluentBuilder

Constructs a fluent builder for the ListOriginRequestPolicies operation.

source§

impl Client

source

pub fn list_public_keys(&self) -> ListPublicKeysFluentBuilder

Constructs a fluent builder for the ListPublicKeys operation.

source§

impl Client

source

pub fn list_realtime_log_configs(&self) -> ListRealtimeLogConfigsFluentBuilder

Constructs a fluent builder for the ListRealtimeLogConfigs operation.

source§

impl Client

source

pub fn list_response_headers_policies( &self ) -> ListResponseHeadersPoliciesFluentBuilder

Constructs a fluent builder for the ListResponseHeadersPolicies operation.

source§

impl Client

source

pub fn list_streaming_distributions( &self ) -> ListStreamingDistributionsFluentBuilder

Constructs a fluent builder for the ListStreamingDistributions operation. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn list_tags_for_resource(&self) -> ListTagsForResourceFluentBuilder

Constructs a fluent builder for the ListTagsForResource operation.

source§

impl Client

source

pub fn publish_function(&self) -> PublishFunctionFluentBuilder

Constructs a fluent builder for the PublishFunction operation.

source§

impl Client

source

pub fn tag_resource(&self) -> TagResourceFluentBuilder

Constructs a fluent builder for the TagResource operation.

source§

impl Client

source

pub fn test_function(&self) -> TestFunctionFluentBuilder

Constructs a fluent builder for the TestFunction operation.

source§

impl Client

source

pub fn untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource operation.

source§

impl Client

source

pub fn update_cache_policy(&self) -> UpdateCachePolicyFluentBuilder

Constructs a fluent builder for the UpdateCachePolicy operation.

source§

impl Client

source

pub fn update_cloud_front_origin_access_identity( &self ) -> UpdateCloudFrontOriginAccessIdentityFluentBuilder

Constructs a fluent builder for the UpdateCloudFrontOriginAccessIdentity operation.

source§

impl Client

source

pub fn update_continuous_deployment_policy( &self ) -> UpdateContinuousDeploymentPolicyFluentBuilder

Constructs a fluent builder for the UpdateContinuousDeploymentPolicy operation.

source§

impl Client

source

pub fn update_distribution(&self) -> UpdateDistributionFluentBuilder

Constructs a fluent builder for the UpdateDistribution operation.

source§

impl Client

source

pub fn update_distribution_with_staging_config( &self ) -> UpdateDistributionWithStagingConfigFluentBuilder

Constructs a fluent builder for the UpdateDistributionWithStagingConfig operation.

source§

impl Client

source

pub fn update_field_level_encryption_config( &self ) -> UpdateFieldLevelEncryptionConfigFluentBuilder

Constructs a fluent builder for the UpdateFieldLevelEncryptionConfig operation.

source§

impl Client

source

pub fn update_field_level_encryption_profile( &self ) -> UpdateFieldLevelEncryptionProfileFluentBuilder

Constructs a fluent builder for the UpdateFieldLevelEncryptionProfile operation.

source§

impl Client

source

pub fn update_function(&self) -> UpdateFunctionFluentBuilder

Constructs a fluent builder for the UpdateFunction operation.

source§

impl Client

source

pub fn update_key_group(&self) -> UpdateKeyGroupFluentBuilder

Constructs a fluent builder for the UpdateKeyGroup operation.

source§

impl Client

source

pub fn update_key_value_store(&self) -> UpdateKeyValueStoreFluentBuilder

Constructs a fluent builder for the UpdateKeyValueStore operation.

source§

impl Client

source

pub fn update_origin_access_control( &self ) -> UpdateOriginAccessControlFluentBuilder

Constructs a fluent builder for the UpdateOriginAccessControl operation.

source§

impl Client

source

pub fn update_origin_request_policy( &self ) -> UpdateOriginRequestPolicyFluentBuilder

Constructs a fluent builder for the UpdateOriginRequestPolicy operation.

source§

impl Client

source

pub fn update_public_key(&self) -> UpdatePublicKeyFluentBuilder

Constructs a fluent builder for the UpdatePublicKey operation.

source§

impl Client

source

pub fn update_realtime_log_config(&self) -> UpdateRealtimeLogConfigFluentBuilder

Constructs a fluent builder for the UpdateRealtimeLogConfig operation.

source§

impl Client

source

pub fn update_response_headers_policy( &self ) -> UpdateResponseHeadersPolicyFluentBuilder

Constructs a fluent builder for the UpdateResponseHeadersPolicy operation.

source§

impl Client

source

pub fn update_streaming_distribution( &self ) -> UpdateStreamingDistributionFluentBuilder

Constructs a fluent builder for the UpdateStreamingDistribution operation.

source§

impl Client

source

pub fn from_conf(conf: Config) -> Self

Creates a new client from the service Config.

Panics

This method will panic in the following cases:

  • Retries or timeouts are enabled without a sleep_impl configured.
  • Identity caching is enabled without a sleep_impl and time_source configured.
  • No behavior_version is provided.

The panic message for each of these will have instructions on how to resolve them.

source

pub fn config(&self) -> &Config

Returns the client’s configuration.

source§

impl Client

source

pub fn new(sdk_config: &SdkConfig) -> Self

Creates a new client from an SDK Config.

Panics
  • This method will panic if the sdk_config is missing an async sleep implementation. If you experience this panic, set the sleep_impl on the Config passed into this function to fix it.
  • This method will panic if the sdk_config is missing an HTTP connector. If you experience this panic, set the http_connector on the Config passed into this function to fix it.
  • This method will panic if no BehaviorVersion is provided. If you experience this panic, set behavior_version on the Config or enable the behavior-version-latest Cargo feature.

Trait Implementations§

source§

impl Clone for Client

source§

fn clone(&self) -> Client

Returns a copy 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 Debug for Client

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for Client

§

impl Send for Client

§

impl Sync for Client

§

impl Unpin for Client

§

impl !UnwindSafe for Client

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<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> Same for T

§

type Output = T

Should always be Self
source§

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

§

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

§

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

§

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