Struct aws_sdk_config::client::Client

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

Client for AWS Config

Client for invoking operations on AWS Config. Each operation on AWS Config 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_config::Client::new(&config);

Occasionally, SDKs may have additional service-specific values 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_config::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 BatchGetAggregateResourceConfig operation has a Client::batch_get_aggregate_resource_config, 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.batch_get_aggregate_resource_config()
    .configuration_aggregator_name("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 batch_get_aggregate_resource_config( &self ) -> BatchGetAggregateResourceConfigFluentBuilder

Constructs a fluent builder for the BatchGetAggregateResourceConfig operation.

source§

impl Client

source

pub fn batch_get_resource_config(&self) -> BatchGetResourceConfigFluentBuilder

Constructs a fluent builder for the BatchGetResourceConfig operation.

source§

impl Client

source

pub fn delete_aggregation_authorization( &self ) -> DeleteAggregationAuthorizationFluentBuilder

Constructs a fluent builder for the DeleteAggregationAuthorization operation.

source§

impl Client

source

pub fn delete_config_rule(&self) -> DeleteConfigRuleFluentBuilder

Constructs a fluent builder for the DeleteConfigRule operation.

source§

impl Client

source

pub fn delete_configuration_aggregator( &self ) -> DeleteConfigurationAggregatorFluentBuilder

Constructs a fluent builder for the DeleteConfigurationAggregator operation.

source§

impl Client

source

pub fn delete_configuration_recorder( &self ) -> DeleteConfigurationRecorderFluentBuilder

Constructs a fluent builder for the DeleteConfigurationRecorder operation.

source§

impl Client

source

pub fn delete_conformance_pack(&self) -> DeleteConformancePackFluentBuilder

Constructs a fluent builder for the DeleteConformancePack operation.

source§

impl Client

source

pub fn delete_delivery_channel(&self) -> DeleteDeliveryChannelFluentBuilder

Constructs a fluent builder for the DeleteDeliveryChannel operation.

source§

impl Client

source

pub fn delete_evaluation_results(&self) -> DeleteEvaluationResultsFluentBuilder

Constructs a fluent builder for the DeleteEvaluationResults operation.

source§

impl Client

source

pub fn delete_organization_config_rule( &self ) -> DeleteOrganizationConfigRuleFluentBuilder

Constructs a fluent builder for the DeleteOrganizationConfigRule operation.

source§

impl Client

source

pub fn delete_organization_conformance_pack( &self ) -> DeleteOrganizationConformancePackFluentBuilder

Constructs a fluent builder for the DeleteOrganizationConformancePack operation.

source§

impl Client

source

pub fn delete_pending_aggregation_request( &self ) -> DeletePendingAggregationRequestFluentBuilder

Constructs a fluent builder for the DeletePendingAggregationRequest operation.

source§

impl Client

source

pub fn delete_remediation_configuration( &self ) -> DeleteRemediationConfigurationFluentBuilder

Constructs a fluent builder for the DeleteRemediationConfiguration operation.

source§

impl Client

source

pub fn delete_remediation_exceptions( &self ) -> DeleteRemediationExceptionsFluentBuilder

Constructs a fluent builder for the DeleteRemediationExceptions operation.

source§

impl Client

source

pub fn delete_resource_config(&self) -> DeleteResourceConfigFluentBuilder

Constructs a fluent builder for the DeleteResourceConfig operation.

source§

impl Client

source

pub fn delete_retention_configuration( &self ) -> DeleteRetentionConfigurationFluentBuilder

Constructs a fluent builder for the DeleteRetentionConfiguration operation.

source§

impl Client

source

pub fn delete_stored_query(&self) -> DeleteStoredQueryFluentBuilder

Constructs a fluent builder for the DeleteStoredQuery operation.

source§

impl Client

source

pub fn deliver_config_snapshot(&self) -> DeliverConfigSnapshotFluentBuilder

Constructs a fluent builder for the DeliverConfigSnapshot operation.

source§

impl Client

source

pub fn describe_aggregate_compliance_by_config_rules( &self ) -> DescribeAggregateComplianceByConfigRulesFluentBuilder

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

source§

impl Client

source

pub fn describe_aggregate_compliance_by_conformance_packs( &self ) -> DescribeAggregateComplianceByConformancePacksFluentBuilder

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

source§

impl Client

source

pub fn describe_aggregation_authorizations( &self ) -> DescribeAggregationAuthorizationsFluentBuilder

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

source§

impl Client

source

pub fn describe_compliance_by_config_rule( &self ) -> DescribeComplianceByConfigRuleFluentBuilder

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

source§

impl Client

source

pub fn describe_compliance_by_resource( &self ) -> DescribeComplianceByResourceFluentBuilder

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

source§

impl Client

source

pub fn describe_config_rule_evaluation_status( &self ) -> DescribeConfigRuleEvaluationStatusFluentBuilder

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

source§

impl Client

source

pub fn describe_config_rules(&self) -> DescribeConfigRulesFluentBuilder

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

source§

impl Client

source

pub fn describe_configuration_aggregator_sources_status( &self ) -> DescribeConfigurationAggregatorSourcesStatusFluentBuilder

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

source§

impl Client

source

pub fn describe_configuration_aggregators( &self ) -> DescribeConfigurationAggregatorsFluentBuilder

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

source§

impl Client

source

pub fn describe_configuration_recorder_status( &self ) -> DescribeConfigurationRecorderStatusFluentBuilder

Constructs a fluent builder for the DescribeConfigurationRecorderStatus operation.

source§

impl Client

source

pub fn describe_configuration_recorders( &self ) -> DescribeConfigurationRecordersFluentBuilder

Constructs a fluent builder for the DescribeConfigurationRecorders operation.

source§

impl Client

source

pub fn describe_conformance_pack_compliance( &self ) -> DescribeConformancePackComplianceFluentBuilder

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

source§

impl Client

source

pub fn describe_conformance_pack_status( &self ) -> DescribeConformancePackStatusFluentBuilder

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

source§

impl Client

source

pub fn describe_conformance_packs( &self ) -> DescribeConformancePacksFluentBuilder

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

source§

impl Client

source

pub fn describe_delivery_channel_status( &self ) -> DescribeDeliveryChannelStatusFluentBuilder

Constructs a fluent builder for the DescribeDeliveryChannelStatus operation.

source§

impl Client

source

pub fn describe_delivery_channels( &self ) -> DescribeDeliveryChannelsFluentBuilder

Constructs a fluent builder for the DescribeDeliveryChannels operation.

source§

impl Client

source

pub fn describe_organization_config_rule_statuses( &self ) -> DescribeOrganizationConfigRuleStatusesFluentBuilder

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

source§

impl Client

source

pub fn describe_organization_config_rules( &self ) -> DescribeOrganizationConfigRulesFluentBuilder

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

source§

impl Client

source

pub fn describe_organization_conformance_pack_statuses( &self ) -> DescribeOrganizationConformancePackStatusesFluentBuilder

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

source§

impl Client

source

pub fn describe_organization_conformance_packs( &self ) -> DescribeOrganizationConformancePacksFluentBuilder

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

source§

impl Client

source

pub fn describe_pending_aggregation_requests( &self ) -> DescribePendingAggregationRequestsFluentBuilder

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

source§

impl Client

source

pub fn describe_remediation_configurations( &self ) -> DescribeRemediationConfigurationsFluentBuilder

Constructs a fluent builder for the DescribeRemediationConfigurations operation.

source§

impl Client

source

pub fn describe_remediation_exceptions( &self ) -> DescribeRemediationExceptionsFluentBuilder

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

source§

impl Client

source

pub fn describe_remediation_execution_status( &self ) -> DescribeRemediationExecutionStatusFluentBuilder

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

source§

impl Client

source

pub fn describe_retention_configurations( &self ) -> DescribeRetentionConfigurationsFluentBuilder

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

source§

impl Client

source

pub fn get_aggregate_compliance_details_by_config_rule( &self ) -> GetAggregateComplianceDetailsByConfigRuleFluentBuilder

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

source§

impl Client

source

pub fn get_aggregate_config_rule_compliance_summary( &self ) -> GetAggregateConfigRuleComplianceSummaryFluentBuilder

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

source§

impl Client

source

pub fn get_aggregate_conformance_pack_compliance_summary( &self ) -> GetAggregateConformancePackComplianceSummaryFluentBuilder

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

source§

impl Client

source

pub fn get_aggregate_discovered_resource_counts( &self ) -> GetAggregateDiscoveredResourceCountsFluentBuilder

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

source§

impl Client

source

pub fn get_aggregate_resource_config( &self ) -> GetAggregateResourceConfigFluentBuilder

Constructs a fluent builder for the GetAggregateResourceConfig operation.

source§

impl Client

source

pub fn get_compliance_details_by_config_rule( &self ) -> GetComplianceDetailsByConfigRuleFluentBuilder

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

source§

impl Client

source

pub fn get_compliance_details_by_resource( &self ) -> GetComplianceDetailsByResourceFluentBuilder

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

source§

impl Client

source

pub fn get_compliance_summary_by_config_rule( &self ) -> GetComplianceSummaryByConfigRuleFluentBuilder

Constructs a fluent builder for the GetComplianceSummaryByConfigRule operation.

source§

impl Client

source

pub fn get_compliance_summary_by_resource_type( &self ) -> GetComplianceSummaryByResourceTypeFluentBuilder

Constructs a fluent builder for the GetComplianceSummaryByResourceType operation.

source§

impl Client

source

pub fn get_conformance_pack_compliance_details( &self ) -> GetConformancePackComplianceDetailsFluentBuilder

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

source§

impl Client

source

pub fn get_conformance_pack_compliance_summary( &self ) -> GetConformancePackComplianceSummaryFluentBuilder

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

source§

impl Client

source

pub fn get_custom_rule_policy(&self) -> GetCustomRulePolicyFluentBuilder

Constructs a fluent builder for the GetCustomRulePolicy operation.

source§

impl Client

source

pub fn get_discovered_resource_counts( &self ) -> GetDiscoveredResourceCountsFluentBuilder

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

  • The fluent builder is configurable:
    • resource_types(impl Into<String>) / set_resource_types(Option<Vec::<String>>):
      required: false

      The comma-separated list that specifies the resource types that you want Config to return (for example, “AWS::EC2::Instance”, “AWS::IAM::User”).

      If a value for resourceTypes is not specified, Config returns all resource types that Config is recording in the region for your account.

      If the configuration recorder is turned off, Config returns an empty list of ResourceCount objects. If the configuration recorder is not recording a specific resource type (for example, S3 buckets), that resource type is not returned in the list of ResourceCount objects.


    • limit(i32) / set_limit(Option<i32>):
      required: false

      The maximum number of ResourceCount objects returned on each page. The default is 100. You cannot specify a number greater than 100. If you specify 0, Config uses the default.


    • next_token(impl Into<String>) / set_next_token(Option<String>):
      required: false

      The nextToken string returned on a previous page that you use to get the next page of results in a paginated response.


  • On success, responds with GetDiscoveredResourceCountsOutput with field(s):
    • total_discovered_resources(i64):

      The total number of resources that Config is recording in the region for your account. If you specify resource types in the request, Config returns only the total number of resources for those resource types.

      Example

      1. Config is recording three resource types in the US East (Ohio) Region for your account: 25 EC2 instances, 20 IAM users, and 15 S3 buckets, for a total of 60 resources.

      2. You make a call to the GetDiscoveredResourceCounts action and specify the resource type, “AWS::EC2::Instances”, in the request.

      3. Config returns 25 for totalDiscoveredResources.

    • resource_counts(Option<Vec::<ResourceCount>>):

      The list of ResourceCount objects. Each object is listed in descending order by the number of resources.

    • next_token(Option<String>):

      The string that you use in a subsequent request to get the next page of results in a paginated response.

  • On failure, responds with SdkError<GetDiscoveredResourceCountsError>
source§

impl Client

source

pub fn get_organization_config_rule_detailed_status( &self ) -> GetOrganizationConfigRuleDetailedStatusFluentBuilder

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

source§

impl Client

source

pub fn get_organization_conformance_pack_detailed_status( &self ) -> GetOrganizationConformancePackDetailedStatusFluentBuilder

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

source§

impl Client

source

pub fn get_organization_custom_rule_policy( &self ) -> GetOrganizationCustomRulePolicyFluentBuilder

Constructs a fluent builder for the GetOrganizationCustomRulePolicy operation.

source§

impl Client

source

pub fn get_resource_config_history( &self ) -> GetResourceConfigHistoryFluentBuilder

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

source§

impl Client

source

pub fn get_resource_evaluation_summary( &self ) -> GetResourceEvaluationSummaryFluentBuilder

Constructs a fluent builder for the GetResourceEvaluationSummary operation.

source§

impl Client

source

pub fn get_stored_query(&self) -> GetStoredQueryFluentBuilder

Constructs a fluent builder for the GetStoredQuery operation.

source§

impl Client

source

pub fn list_aggregate_discovered_resources( &self ) -> ListAggregateDiscoveredResourcesFluentBuilder

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

source§

impl Client

source

pub fn list_conformance_pack_compliance_scores( &self ) -> ListConformancePackComplianceScoresFluentBuilder

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

source§

impl Client

source

pub fn list_discovered_resources(&self) -> ListDiscoveredResourcesFluentBuilder

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

source§

impl Client

source

pub fn list_resource_evaluations(&self) -> ListResourceEvaluationsFluentBuilder

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

source§

impl Client

source

pub fn list_stored_queries(&self) -> ListStoredQueriesFluentBuilder

Constructs a fluent builder for the ListStoredQueries 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. This operation supports pagination; See into_paginator().

source§

impl Client

source

pub fn put_aggregation_authorization( &self ) -> PutAggregationAuthorizationFluentBuilder

Constructs a fluent builder for the PutAggregationAuthorization operation.

source§

impl Client

source

pub fn put_config_rule(&self) -> PutConfigRuleFluentBuilder

Constructs a fluent builder for the PutConfigRule operation.

source§

impl Client

source

pub fn put_configuration_aggregator( &self ) -> PutConfigurationAggregatorFluentBuilder

Constructs a fluent builder for the PutConfigurationAggregator operation.

source§

impl Client

source

pub fn put_configuration_recorder( &self ) -> PutConfigurationRecorderFluentBuilder

Constructs a fluent builder for the PutConfigurationRecorder operation.

source§

impl Client

source

pub fn put_conformance_pack(&self) -> PutConformancePackFluentBuilder

Constructs a fluent builder for the PutConformancePack operation.

source§

impl Client

source

pub fn put_delivery_channel(&self) -> PutDeliveryChannelFluentBuilder

Constructs a fluent builder for the PutDeliveryChannel operation.

source§

impl Client

source

pub fn put_evaluations(&self) -> PutEvaluationsFluentBuilder

Constructs a fluent builder for the PutEvaluations operation.

source§

impl Client

source

pub fn put_external_evaluation(&self) -> PutExternalEvaluationFluentBuilder

Constructs a fluent builder for the PutExternalEvaluation operation.

source§

impl Client

source

pub fn put_organization_config_rule( &self ) -> PutOrganizationConfigRuleFluentBuilder

Constructs a fluent builder for the PutOrganizationConfigRule operation.

source§

impl Client

source

pub fn put_organization_conformance_pack( &self ) -> PutOrganizationConformancePackFluentBuilder

Constructs a fluent builder for the PutOrganizationConformancePack operation.

source§

impl Client

source

pub fn put_remediation_configurations( &self ) -> PutRemediationConfigurationsFluentBuilder

Constructs a fluent builder for the PutRemediationConfigurations operation.

source§

impl Client

source

pub fn put_remediation_exceptions( &self ) -> PutRemediationExceptionsFluentBuilder

Constructs a fluent builder for the PutRemediationExceptions operation.

source§

impl Client

source

pub fn put_resource_config(&self) -> PutResourceConfigFluentBuilder

Constructs a fluent builder for the PutResourceConfig operation.

source§

impl Client

source

pub fn put_retention_configuration( &self ) -> PutRetentionConfigurationFluentBuilder

Constructs a fluent builder for the PutRetentionConfiguration operation.

source§

impl Client

source

pub fn put_stored_query(&self) -> PutStoredQueryFluentBuilder

Constructs a fluent builder for the PutStoredQuery operation.

source§

impl Client

source

pub fn select_aggregate_resource_config( &self ) -> SelectAggregateResourceConfigFluentBuilder

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

source§

impl Client

source

pub fn select_resource_config(&self) -> SelectResourceConfigFluentBuilder

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

source§

impl Client

source

pub fn start_config_rules_evaluation( &self ) -> StartConfigRulesEvaluationFluentBuilder

Constructs a fluent builder for the StartConfigRulesEvaluation operation.

source§

impl Client

source

pub fn start_configuration_recorder( &self ) -> StartConfigurationRecorderFluentBuilder

Constructs a fluent builder for the StartConfigurationRecorder operation.

source§

impl Client

source

pub fn start_remediation_execution( &self ) -> StartRemediationExecutionFluentBuilder

Constructs a fluent builder for the StartRemediationExecution operation.

source§

impl Client

source

pub fn start_resource_evaluation(&self) -> StartResourceEvaluationFluentBuilder

Constructs a fluent builder for the StartResourceEvaluation operation.

source§

impl Client

source

pub fn stop_configuration_recorder( &self ) -> StopConfigurationRecorderFluentBuilder

Constructs a fluent builder for the StopConfigurationRecorder 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 untag_resource(&self) -> UntagResourceFluentBuilder

Constructs a fluent builder for the UntagResource 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 Freeze for Client

§

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

source§

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

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

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

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

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

source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
source§

impl<T> 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