Struct aws_sdk_cloudwatchlogs::Client

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

Client for Amazon CloudWatch Logs

Client for invoking operations on Amazon CloudWatch Logs. Each operation on Amazon CloudWatch Logs 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_cloudwatchlogs::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_cloudwatchlogs::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 AssociateKmsKey operation has a Client::associate_kms_key, 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_kms_key()
    .log_group_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 associate_kms_key(&self) -> AssociateKmsKeyFluentBuilder

Constructs a fluent builder for the AssociateKmsKey operation.

source§

impl Client

source

pub fn cancel_export_task(&self) -> CancelExportTaskFluentBuilder

Constructs a fluent builder for the CancelExportTask operation.

source§

impl Client

source

pub fn create_delivery(&self) -> CreateDeliveryFluentBuilder

Constructs a fluent builder for the CreateDelivery operation.

source§

impl Client

source

pub fn create_export_task(&self) -> CreateExportTaskFluentBuilder

Constructs a fluent builder for the CreateExportTask operation.

source§

impl Client

source

pub fn create_log_anomaly_detector( &self ) -> CreateLogAnomalyDetectorFluentBuilder

Constructs a fluent builder for the CreateLogAnomalyDetector operation.

source§

impl Client

source

pub fn create_log_group(&self) -> CreateLogGroupFluentBuilder

Constructs a fluent builder for the CreateLogGroup operation.

source§

impl Client

source

pub fn create_log_stream(&self) -> CreateLogStreamFluentBuilder

Constructs a fluent builder for the CreateLogStream operation.

source§

impl Client

source

pub fn delete_account_policy(&self) -> DeleteAccountPolicyFluentBuilder

Constructs a fluent builder for the DeleteAccountPolicy operation.

source§

impl Client

source

pub fn delete_data_protection_policy( &self ) -> DeleteDataProtectionPolicyFluentBuilder

Constructs a fluent builder for the DeleteDataProtectionPolicy operation.

source§

impl Client

source

pub fn delete_delivery(&self) -> DeleteDeliveryFluentBuilder

Constructs a fluent builder for the DeleteDelivery operation.

source§

impl Client

source

pub fn delete_delivery_destination( &self ) -> DeleteDeliveryDestinationFluentBuilder

Constructs a fluent builder for the DeleteDeliveryDestination operation.

source§

impl Client

source

pub fn delete_delivery_destination_policy( &self ) -> DeleteDeliveryDestinationPolicyFluentBuilder

Constructs a fluent builder for the DeleteDeliveryDestinationPolicy operation.

source§

impl Client

source

pub fn delete_delivery_source(&self) -> DeleteDeliverySourceFluentBuilder

Constructs a fluent builder for the DeleteDeliverySource operation.

source§

impl Client

source

pub fn delete_destination(&self) -> DeleteDestinationFluentBuilder

Constructs a fluent builder for the DeleteDestination operation.

source§

impl Client

source

pub fn delete_log_anomaly_detector( &self ) -> DeleteLogAnomalyDetectorFluentBuilder

Constructs a fluent builder for the DeleteLogAnomalyDetector operation.

source§

impl Client

source

pub fn delete_log_group(&self) -> DeleteLogGroupFluentBuilder

Constructs a fluent builder for the DeleteLogGroup operation.

source§

impl Client

source

pub fn delete_log_stream(&self) -> DeleteLogStreamFluentBuilder

Constructs a fluent builder for the DeleteLogStream operation.

source§

impl Client

source

pub fn delete_metric_filter(&self) -> DeleteMetricFilterFluentBuilder

Constructs a fluent builder for the DeleteMetricFilter operation.

source§

impl Client

source

pub fn delete_query_definition(&self) -> DeleteQueryDefinitionFluentBuilder

Constructs a fluent builder for the DeleteQueryDefinition operation.

source§

impl Client

source

pub fn delete_resource_policy(&self) -> DeleteResourcePolicyFluentBuilder

Constructs a fluent builder for the DeleteResourcePolicy operation.

source§

impl Client

source

pub fn delete_retention_policy(&self) -> DeleteRetentionPolicyFluentBuilder

Constructs a fluent builder for the DeleteRetentionPolicy operation.

source§

impl Client

source

pub fn delete_subscription_filter( &self ) -> DeleteSubscriptionFilterFluentBuilder

Constructs a fluent builder for the DeleteSubscriptionFilter operation.

source§

impl Client

source

pub fn describe_account_policies(&self) -> DescribeAccountPoliciesFluentBuilder

Constructs a fluent builder for the DescribeAccountPolicies operation.

source§

impl Client

source

pub fn describe_deliveries(&self) -> DescribeDeliveriesFluentBuilder

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

source§

impl Client

source

pub fn describe_delivery_destinations( &self ) -> DescribeDeliveryDestinationsFluentBuilder

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

source§

impl Client

source

pub fn describe_delivery_sources(&self) -> DescribeDeliverySourcesFluentBuilder

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

source§

impl Client

source

pub fn describe_destinations(&self) -> DescribeDestinationsFluentBuilder

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

source§

impl Client

source

pub fn describe_export_tasks(&self) -> DescribeExportTasksFluentBuilder

Constructs a fluent builder for the DescribeExportTasks operation.

source§

impl Client

source

pub fn describe_log_groups(&self) -> DescribeLogGroupsFluentBuilder

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

source§

impl Client

source

pub fn describe_log_streams(&self) -> DescribeLogStreamsFluentBuilder

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

source§

impl Client

source

pub fn describe_metric_filters(&self) -> DescribeMetricFiltersFluentBuilder

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

source§

impl Client

source

pub fn describe_queries(&self) -> DescribeQueriesFluentBuilder

Constructs a fluent builder for the DescribeQueries operation.

source§

impl Client

source

pub fn describe_query_definitions( &self ) -> DescribeQueryDefinitionsFluentBuilder

Constructs a fluent builder for the DescribeQueryDefinitions operation.

source§

impl Client

source

pub fn describe_resource_policies( &self ) -> DescribeResourcePoliciesFluentBuilder

Constructs a fluent builder for the DescribeResourcePolicies operation.

source§

impl Client

source

pub fn describe_subscription_filters( &self ) -> DescribeSubscriptionFiltersFluentBuilder

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

source§

impl Client

source

pub fn disassociate_kms_key(&self) -> DisassociateKmsKeyFluentBuilder

Constructs a fluent builder for the DisassociateKmsKey operation.

  • The fluent builder is configurable:
    • log_group_name(impl Into<String>) / set_log_group_name(Option<String>):
      required: false

      The name of the log group.

      In your DisassociateKmsKey operation, you must specify either the resourceIdentifier parameter or the logGroup parameter, but you can’t specify both.


    • resource_identifier(impl Into<String>) / set_resource_identifier(Option<String>):
      required: false

      Specifies the target for this operation. You must specify one of the following:

      • Specify the ARN of a log group to stop having CloudWatch Logs use the KMS key to encrypt log events that are ingested and stored by that log group. After you run this operation, CloudWatch Logs encrypts ingested log events with the default CloudWatch Logs method. The log group ARN must be in the following format. Replace REGION and ACCOUNT_ID with your Region and account ID.

        arn:aws:logs:REGION:ACCOUNT_ID:log-group:LOG_GROUP_NAME

      • Specify the following ARN to stop using this key to encrypt the results of future StartQuery operations in this account. Replace REGION and ACCOUNT_ID with your Region and account ID.

        arn:aws:logs:REGION:ACCOUNT_ID:query-result:*

      In your DisssociateKmsKey operation, you must specify either the resourceIdentifier parameter or the logGroup parameter, but you can’t specify both.


  • On success, responds with DisassociateKmsKeyOutput
  • On failure, responds with SdkError<DisassociateKmsKeyError>
source§

impl Client

source

pub fn filter_log_events(&self) -> FilterLogEventsFluentBuilder

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

source§

impl Client

source

pub fn get_data_protection_policy(&self) -> GetDataProtectionPolicyFluentBuilder

Constructs a fluent builder for the GetDataProtectionPolicy operation.

source§

impl Client

source

pub fn get_delivery(&self) -> GetDeliveryFluentBuilder

Constructs a fluent builder for the GetDelivery operation.

source§

impl Client

source

pub fn get_delivery_destination(&self) -> GetDeliveryDestinationFluentBuilder

Constructs a fluent builder for the GetDeliveryDestination operation.

source§

impl Client

source

pub fn get_delivery_destination_policy( &self ) -> GetDeliveryDestinationPolicyFluentBuilder

Constructs a fluent builder for the GetDeliveryDestinationPolicy operation.

source§

impl Client

source

pub fn get_delivery_source(&self) -> GetDeliverySourceFluentBuilder

Constructs a fluent builder for the GetDeliverySource operation.

source§

impl Client

source

pub fn get_log_anomaly_detector(&self) -> GetLogAnomalyDetectorFluentBuilder

Constructs a fluent builder for the GetLogAnomalyDetector operation.

source§

impl Client

source

pub fn get_log_events(&self) -> GetLogEventsFluentBuilder

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

source§

impl Client

source

pub fn get_log_group_fields(&self) -> GetLogGroupFieldsFluentBuilder

Constructs a fluent builder for the GetLogGroupFields operation.

source§

impl Client

source

pub fn get_log_record(&self) -> GetLogRecordFluentBuilder

Constructs a fluent builder for the GetLogRecord operation.

source§

impl Client

source

pub fn get_query_results(&self) -> GetQueryResultsFluentBuilder

Constructs a fluent builder for the GetQueryResults operation.

  • The fluent builder is configurable:
  • On success, responds with GetQueryResultsOutput with field(s):
    • results(Option<Vec::<Vec::<ResultField>>>):

      The log events that matched the query criteria during the most recent time it ran.

      The results value is an array of arrays. Each log event is one object in the top-level array. Each of these log event objects is an array of field/value pairs.

    • statistics(Option<QueryStatistics>):

      Includes the number of log events scanned by the query, the number of log events that matched the query criteria, and the total number of bytes in the scanned log events. These values reflect the full raw results of the query.

    • status(Option<QueryStatus>):

      The status of the most recent running of the query. Possible values are Cancelled, Complete, Failed, Running, Scheduled, Timeout, and Unknown.

      Queries time out after 60 minutes of runtime. To avoid having your queries time out, reduce the time range being searched or partition your query into a number of queries.

    • encryption_key(Option<String>):

      If you associated an KMS key with the CloudWatch Logs Insights query results in this account, this field displays the ARN of the key that’s used to encrypt the query results when StartQuery stores them.

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

impl Client

source

pub fn list_anomalies(&self) -> ListAnomaliesFluentBuilder

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

source§

impl Client

source

pub fn list_log_anomaly_detectors(&self) -> ListLogAnomalyDetectorsFluentBuilder

Constructs a fluent builder for the ListLogAnomalyDetectors 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 list_tags_log_group(&self) -> ListTagsLogGroupFluentBuilder

👎Deprecated: Please use the generic tagging API ListTagsForResource

Constructs a fluent builder for the ListTagsLogGroup operation.

source§

impl Client

source

pub fn put_account_policy(&self) -> PutAccountPolicyFluentBuilder

Constructs a fluent builder for the PutAccountPolicy operation.

  • The fluent builder is configurable:
    • policy_name(impl Into<String>) / set_policy_name(Option<String>):
      required: true

      A name for the policy. This must be unique within the account.


    • policy_document(impl Into<String>) / set_policy_document(Option<String>):
      required: true

      Specify the policy, in JSON.

      Data protection policy

      A data protection policy must include two JSON blocks:

      • The first block must include both a DataIdentifer array and an Operation property with an Audit action. The DataIdentifer array lists the types of sensitive data that you want to mask. For more information about the available options, see Types of data that you can mask.

        The Operation property with an Audit action is required to find the sensitive data terms. This Audit action must contain a FindingsDestination object. You can optionally use that FindingsDestination object to list one or more destinations to send audit findings to. If you specify destinations such as log groups, Firehose streams, and S3 buckets, they must already exist.

      • The second block must include both a DataIdentifer array and an Operation property with an Deidentify action. The DataIdentifer array must exactly match the DataIdentifer array in the first block of the policy.

        The Operation property with the Deidentify action is what actually masks the data, and it must contain the “MaskConfig”: {} object. The “MaskConfig”: {} object must be empty.

      For an example data protection policy, see the Examples section on this page.

      The contents of the two DataIdentifer arrays must match exactly.

      In addition to the two JSON blocks, the policyDocument can also include Name, Description, and Version fields. The Name is different than the operation’s policyName parameter, and is used as a dimension when CloudWatch Logs reports audit findings metrics to CloudWatch.

      The JSON specified in policyDocument can be up to 30,720 characters long.

      Subscription filter policy

      A subscription filter policy can include the following attributes in a JSON block:

      • DestinationArn The ARN of the destination to deliver log events to. Supported destinations are:

        • An Kinesis Data Streams data stream in the same account as the subscription policy, for same-account delivery.

        • An Firehose data stream in the same account as the subscription policy, for same-account delivery.

        • A Lambda function in the same account as the subscription policy, for same-account delivery.

        • A logical destination in a different account created with PutDestination, for cross-account delivery. Kinesis Data Streams and Firehose are supported as logical destinations.

      • RoleArn The ARN of an IAM role that grants CloudWatch Logs permissions to deliver ingested log events to the destination stream. You don’t need to provide the ARN when you are working with a logical destination for cross-account delivery.

      • FilterPattern A filter pattern for subscribing to a filtered stream of log events.

      • DistributionThe method used to distribute log data to the destination. By default, log data is grouped by log stream, but the grouping can be set to Random for a more even distribution. This property is only applicable when the destination is an Kinesis Data Streams data stream.


    • policy_type(PolicyType) / set_policy_type(Option<PolicyType>):
      required: true

      The type of policy that you’re creating or updating.


    • scope(Scope) / set_scope(Option<Scope>):
      required: false

      Currently the only valid value for this parameter is ALL, which specifies that the data protection policy applies to all log groups in the account. If you omit this parameter, the default of ALL is used.


    • selection_criteria(impl Into<String>) / set_selection_criteria(Option<String>):
      required: false

      Use this parameter to apply the subscription filter policy to a subset of log groups in the account. Currently, the only supported filter is LogGroupName NOT IN []. The selectionCriteria string can be up to 25KB in length. The length is determined by using its UTF-8 bytes.

      Using the selectionCriteria parameter is useful to help prevent infinite loops. For more information, see Log recursion prevention.

      Specifing selectionCriteria is valid only when you specify SUBSCRIPTION_FILTER_POLICY for policyType.


  • On success, responds with PutAccountPolicyOutput with field(s):
  • On failure, responds with SdkError<PutAccountPolicyError>
source§

impl Client

source

pub fn put_data_protection_policy(&self) -> PutDataProtectionPolicyFluentBuilder

Constructs a fluent builder for the PutDataProtectionPolicy operation.

  • The fluent builder is configurable:
    • log_group_identifier(impl Into<String>) / set_log_group_identifier(Option<String>):
      required: true

      Specify either the log group name or log group ARN.


    • policy_document(impl Into<String>) / set_policy_document(Option<String>):
      required: true

      Specify the data protection policy, in JSON.

      This policy must include two JSON blocks:

      • The first block must include both a DataIdentifer array and an Operation property with an Audit action. The DataIdentifer array lists the types of sensitive data that you want to mask. For more information about the available options, see Types of data that you can mask.

        The Operation property with an Audit action is required to find the sensitive data terms. This Audit action must contain a FindingsDestination object. You can optionally use that FindingsDestination object to list one or more destinations to send audit findings to. If you specify destinations such as log groups, Firehose streams, and S3 buckets, they must already exist.

      • The second block must include both a DataIdentifer array and an Operation property with an Deidentify action. The DataIdentifer array must exactly match the DataIdentifer array in the first block of the policy.

        The Operation property with the Deidentify action is what actually masks the data, and it must contain the “MaskConfig”: {} object. The “MaskConfig”: {} object must be empty.

      For an example data protection policy, see the Examples section on this page.

      The contents of the two DataIdentifer arrays must match exactly.

      In addition to the two JSON blocks, the policyDocument can also include Name, Description, and Version fields. The Name is used as a dimension when CloudWatch Logs reports audit findings metrics to CloudWatch.

      The JSON specified in policyDocument can be up to 30,720 characters.


  • On success, responds with PutDataProtectionPolicyOutput with field(s):
  • On failure, responds with SdkError<PutDataProtectionPolicyError>
source§

impl Client

source

pub fn put_delivery_destination(&self) -> PutDeliveryDestinationFluentBuilder

Constructs a fluent builder for the PutDeliveryDestination operation.

source§

impl Client

source

pub fn put_delivery_destination_policy( &self ) -> PutDeliveryDestinationPolicyFluentBuilder

Constructs a fluent builder for the PutDeliveryDestinationPolicy operation.

source§

impl Client

source

pub fn put_delivery_source(&self) -> PutDeliverySourceFluentBuilder

Constructs a fluent builder for the PutDeliverySource operation.

source§

impl Client

source

pub fn put_destination(&self) -> PutDestinationFluentBuilder

Constructs a fluent builder for the PutDestination operation.

source§

impl Client

source

pub fn put_destination_policy(&self) -> PutDestinationPolicyFluentBuilder

Constructs a fluent builder for the PutDestinationPolicy operation.

source§

impl Client

source

pub fn put_log_events(&self) -> PutLogEventsFluentBuilder

Constructs a fluent builder for the PutLogEvents operation.

source§

impl Client

source

pub fn put_metric_filter(&self) -> PutMetricFilterFluentBuilder

Constructs a fluent builder for the PutMetricFilter operation.

source§

impl Client

source

pub fn put_query_definition(&self) -> PutQueryDefinitionFluentBuilder

Constructs a fluent builder for the PutQueryDefinition operation.

source§

impl Client

source

pub fn put_resource_policy(&self) -> PutResourcePolicyFluentBuilder

Constructs a fluent builder for the PutResourcePolicy operation.

  • The fluent builder is configurable:
    • policy_name(impl Into<String>) / set_policy_name(Option<String>):
      required: false

      Name of the new policy. This parameter is required.


    • policy_document(impl Into<String>) / set_policy_document(Option<String>):
      required: false

      Details of the new policy, including the identity of the principal that is enabled to put logs to this account. This is formatted as a JSON string. This parameter is required.

      The following example creates a resource policy enabling the Route 53 service to put DNS query logs in to the specified log group. Replace “logArn” with the ARN of your CloudWatch Logs resource, such as a log group or log stream.

      CloudWatch Logs also supports aws:SourceArn and aws:SourceAccount condition context keys.

      In the example resource policy, you would replace the value of SourceArn with the resource making the call from Route 53 to CloudWatch Logs. You would also replace the value of SourceAccount with the Amazon Web Services account ID making that call.

      { “Version”: “2012-10-17”, “Statement”: [ { “Sid”: “Route53LogsToCloudWatchLogs”, “Effect”: “Allow”, “Principal”: { “Service”: [ “route53.amazonaws.com” ] }, “Action”: “logs:PutLogEvents”, “Resource”: “logArn”, “Condition”: { “ArnLike”: { “aws:SourceArn”: “myRoute53ResourceArn” }, “StringEquals”: { “aws:SourceAccount”: “myAwsAccountId” } } } ] }


  • On success, responds with PutResourcePolicyOutput with field(s):
  • On failure, responds with SdkError<PutResourcePolicyError>
source§

impl Client

source

pub fn put_retention_policy(&self) -> PutRetentionPolicyFluentBuilder

Constructs a fluent builder for the PutRetentionPolicy operation.

source§

impl Client

source

pub fn put_subscription_filter(&self) -> PutSubscriptionFilterFluentBuilder

Constructs a fluent builder for the PutSubscriptionFilter operation.

source§

impl Client

source

pub fn start_query(&self) -> StartQueryFluentBuilder

Constructs a fluent builder for the StartQuery operation.

source§

impl Client

source

pub fn stop_query(&self) -> StopQueryFluentBuilder

Constructs a fluent builder for the StopQuery operation.

source§

impl Client

source

pub fn tag_log_group(&self) -> TagLogGroupFluentBuilder

👎Deprecated: Please use the generic tagging API TagResource

Constructs a fluent builder for the TagLogGroup 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_metric_filter(&self) -> TestMetricFilterFluentBuilder

Constructs a fluent builder for the TestMetricFilter operation.

source§

impl Client

source

pub fn untag_log_group(&self) -> UntagLogGroupFluentBuilder

👎Deprecated: Please use the generic tagging API UntagResource

Constructs a fluent builder for the UntagLogGroup 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_anomaly(&self) -> UpdateAnomalyFluentBuilder

Constructs a fluent builder for the UpdateAnomaly operation.

source§

impl Client

source

pub fn update_log_anomaly_detector( &self ) -> UpdateLogAnomalyDetectorFluentBuilder

Constructs a fluent builder for the UpdateLogAnomalyDetector 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