Struct aws_sdk_swf::Client

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

Client for Amazon Simple Workflow Service

Client for invoking operations on Amazon Simple Workflow Service. Each operation on Amazon Simple Workflow Service 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_swf::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_swf::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 CountClosedWorkflowExecutions operation has a Client::count_closed_workflow_executions, 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.count_closed_workflow_executions()
    .domain("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 count_closed_workflow_executions( &self ) -> CountClosedWorkflowExecutionsFluentBuilder

Constructs a fluent builder for the CountClosedWorkflowExecutions operation.

source§

impl Client

source

pub fn count_open_workflow_executions( &self ) -> CountOpenWorkflowExecutionsFluentBuilder

Constructs a fluent builder for the CountOpenWorkflowExecutions operation.

source§

impl Client

source

pub fn count_pending_activity_tasks( &self ) -> CountPendingActivityTasksFluentBuilder

Constructs a fluent builder for the CountPendingActivityTasks operation.

source§

impl Client

source

pub fn count_pending_decision_tasks( &self ) -> CountPendingDecisionTasksFluentBuilder

Constructs a fluent builder for the CountPendingDecisionTasks operation.

source§

impl Client

source

pub fn deprecate_activity_type(&self) -> DeprecateActivityTypeFluentBuilder

Constructs a fluent builder for the DeprecateActivityType operation.

source§

impl Client

source

pub fn deprecate_domain(&self) -> DeprecateDomainFluentBuilder

Constructs a fluent builder for the DeprecateDomain operation.

source§

impl Client

source

pub fn deprecate_workflow_type(&self) -> DeprecateWorkflowTypeFluentBuilder

Constructs a fluent builder for the DeprecateWorkflowType operation.

source§

impl Client

source

pub fn describe_activity_type(&self) -> DescribeActivityTypeFluentBuilder

Constructs a fluent builder for the DescribeActivityType operation.

source§

impl Client

source

pub fn describe_domain(&self) -> DescribeDomainFluentBuilder

Constructs a fluent builder for the DescribeDomain operation.

source§

impl Client

source

pub fn describe_workflow_execution( &self ) -> DescribeWorkflowExecutionFluentBuilder

Constructs a fluent builder for the DescribeWorkflowExecution operation.

source§

impl Client

source

pub fn describe_workflow_type(&self) -> DescribeWorkflowTypeFluentBuilder

Constructs a fluent builder for the DescribeWorkflowType operation.

source§

impl Client

source

pub fn get_workflow_execution_history( &self ) -> GetWorkflowExecutionHistoryFluentBuilder

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

source§

impl Client

source

pub fn list_activity_types(&self) -> ListActivityTypesFluentBuilder

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

source§

impl Client

source

pub fn list_closed_workflow_executions( &self ) -> ListClosedWorkflowExecutionsFluentBuilder

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

source§

impl Client

source

pub fn list_domains(&self) -> ListDomainsFluentBuilder

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

source§

impl Client

source

pub fn list_open_workflow_executions( &self ) -> ListOpenWorkflowExecutionsFluentBuilder

Constructs a fluent builder for the ListOpenWorkflowExecutions 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_workflow_types(&self) -> ListWorkflowTypesFluentBuilder

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

source§

impl Client

source

pub fn poll_for_activity_task(&self) -> PollForActivityTaskFluentBuilder

Constructs a fluent builder for the PollForActivityTask operation.

source§

impl Client

source

pub fn poll_for_decision_task(&self) -> PollForDecisionTaskFluentBuilder

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

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

      The name of the domain containing the task lists to poll.


    • task_list(TaskList) / set_task_list(Option<TaskList>):
      required: true

      Specifies the task list to poll for decision tasks.

      The specified string must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f-\u009f). Also, it must not be the literal string arn.


    • identity(impl Into<String>) / set_identity(Option<String>):
      required: false

      Identity of the decider making the request, which is recorded in the DecisionTaskStarted event in the workflow history. This enables diagnostic tracing when problems arise. The form of this identity is user defined.


    • next_page_token(impl Into<String>) / set_next_page_token(Option<String>):
      required: false

      If NextPageToken is returned there are more results available. The value of NextPageToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. Each pagination token expires after 24 hours. Using an expired pagination token will return a 400 error: “Specified token has exceeded its maximum lifetime”.

      The configured maximumPageSize determines how many results can be returned in a single call.

      The nextPageToken returned by this action cannot be used with GetWorkflowExecutionHistory to get the next page. You must call PollForDecisionTask again (with the nextPageToken) to retrieve the next page of history records. Calling PollForDecisionTask with a nextPageToken doesn’t return a new decision task.


    • maximum_page_size(i32) / set_maximum_page_size(Option<i32>):
      required: false

      The maximum number of results that are returned per call. Use nextPageToken to obtain further pages of results.

      This is an upper limit only; the actual number of results returned per call may be fewer than the specified maximum.


    • reverse_order(bool) / set_reverse_order(Option<bool>):
      required: false

      When set to true, returns the events in reverse order. By default the results are returned in ascending order of the eventTimestamp of the events.


    • start_at_previous_started_event(bool) / set_start_at_previous_started_event(Option<bool>):
      required: false

      When set to true, returns the events with eventTimestamp greater than or equal to eventTimestamp of the most recent DecisionTaskStarted event. By default, this parameter is set to false.


  • On success, responds with PollForDecisionTaskOutput with field(s):
    • task_token(String):

      The opaque string used as a handle on the task. This token is used by workers to communicate progress and response information back to the system about the task.

    • started_event_id(i64):

      The ID of the DecisionTaskStarted event recorded in the history.

    • workflow_execution(Option<WorkflowExecution>):

      The workflow execution for which this decision task was created.

    • workflow_type(Option<WorkflowType>):

      The type of the workflow execution for which this decision task was created.

    • events(Vec::<HistoryEvent>):

      A paginated list of history events of the workflow execution. The decider uses this during the processing of the decision task.

    • next_page_token(Option<String>):

      If a NextPageToken was returned by a previous call, there are more results available. To retrieve the next page of results, make the call again using the returned token in nextPageToken. Keep all other arguments unchanged.

      The configured maximumPageSize determines how many results can be returned in a single call.

    • previous_started_event_id(i64):

      The ID of the DecisionTaskStarted event of the previous decision task of this workflow execution that was processed by the decider. This can be used to determine the events in the history new since the last decision task received by the decider.

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

impl Client

source

pub fn record_activity_task_heartbeat( &self ) -> RecordActivityTaskHeartbeatFluentBuilder

Constructs a fluent builder for the RecordActivityTaskHeartbeat operation.

source§

impl Client

source

pub fn register_activity_type(&self) -> RegisterActivityTypeFluentBuilder

Constructs a fluent builder for the RegisterActivityType operation.

source§

impl Client

source

pub fn register_domain(&self) -> RegisterDomainFluentBuilder

Constructs a fluent builder for the RegisterDomain operation.

source§

impl Client

source

pub fn register_workflow_type(&self) -> RegisterWorkflowTypeFluentBuilder

Constructs a fluent builder for the RegisterWorkflowType operation.

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

      The name of the domain in which to register the workflow type.


    • name(impl Into<String>) / set_name(Option<String>):
      required: true

      The name of the workflow type.

      The specified string must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f-\u009f). Also, it must not be the literal string arn.


    • version(impl Into<String>) / set_version(Option<String>):
      required: true

      The version of the workflow type.

      The workflow type consists of the name and version, the combination of which must be unique within the domain. To get a list of all currently registered workflow types, use the ListWorkflowTypes action.

      The specified string must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f-\u009f). Also, it must not be the literal string arn.


    • description(impl Into<String>) / set_description(Option<String>):
      required: false

      Textual description of the workflow type.


    • default_task_start_to_close_timeout(impl Into<String>) / set_default_task_start_to_close_timeout(Option<String>):
      required: false

      If set, specifies the default maximum duration of decision tasks for this workflow type. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution Decision.

      The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.


    • default_execution_start_to_close_timeout(impl Into<String>) / set_default_execution_start_to_close_timeout(Option<String>):
      required: false

      If set, specifies the default maximum duration for executions of this workflow type. You can override this default when starting an execution through the StartWorkflowExecution Action or StartChildWorkflowExecution Decision.

      The duration is specified in seconds; an integer greater than or equal to 0. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of “NONE” for defaultExecutionStartToCloseTimeout; there is a one-year max limit on the time that a workflow execution can run. Exceeding this limit always causes the workflow execution to time out.


    • default_task_list(TaskList) / set_default_task_list(Option<TaskList>):
      required: false

      If set, specifies the default task list to use for scheduling decision tasks for executions of this workflow type. This default is used only if a task list isn’t provided when starting the execution through the StartWorkflowExecution Action or StartChildWorkflowExecution Decision.


    • default_task_priority(impl Into<String>) / set_default_task_priority(Option<String>):
      required: false

      The default task priority to assign to the workflow type. If not assigned, then 0 is used. Valid values are integers that range from Java’s Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

      For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.


    • default_child_policy(ChildPolicy) / set_default_child_policy(Option<ChildPolicy>):
      required: false

      If set, specifies the default policy to use for the child workflow executions when a workflow execution of this type is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This default can be overridden when starting a workflow execution using the StartWorkflowExecution action or the StartChildWorkflowExecution Decision.

      The supported child policies are:

      • TERMINATE – The child executions are terminated.

      • REQUEST_CANCEL – A request to cancel is attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.

      • ABANDON – No action is taken. The child executions continue to run.


    • default_lambda_role(impl Into<String>) / set_default_lambda_role(Option<String>):
      required: false

      The default IAM role attached to this workflow type.

      Executions of this workflow type need IAM roles to invoke Lambda functions. If you don’t specify an IAM role when you start this workflow type, the default Lambda role is attached to the execution. For more information, see https://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html in the Amazon SWF Developer Guide.


  • On success, responds with RegisterWorkflowTypeOutput
  • On failure, responds with SdkError<RegisterWorkflowTypeError>
source§

impl Client

source

pub fn request_cancel_workflow_execution( &self ) -> RequestCancelWorkflowExecutionFluentBuilder

Constructs a fluent builder for the RequestCancelWorkflowExecution operation.

source§

impl Client

source

pub fn respond_activity_task_canceled( &self ) -> RespondActivityTaskCanceledFluentBuilder

Constructs a fluent builder for the RespondActivityTaskCanceled operation.

source§

impl Client

source

pub fn respond_activity_task_completed( &self ) -> RespondActivityTaskCompletedFluentBuilder

Constructs a fluent builder for the RespondActivityTaskCompleted operation.

source§

impl Client

source

pub fn respond_activity_task_failed( &self ) -> RespondActivityTaskFailedFluentBuilder

Constructs a fluent builder for the RespondActivityTaskFailed operation.

source§

impl Client

source

pub fn respond_decision_task_completed( &self ) -> RespondDecisionTaskCompletedFluentBuilder

Constructs a fluent builder for the RespondDecisionTaskCompleted operation.

source§

impl Client

source

pub fn signal_workflow_execution(&self) -> SignalWorkflowExecutionFluentBuilder

Constructs a fluent builder for the SignalWorkflowExecution operation.

source§

impl Client

source

pub fn start_workflow_execution(&self) -> StartWorkflowExecutionFluentBuilder

Constructs a fluent builder for the StartWorkflowExecution operation.

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

      The name of the domain in which the workflow execution is created.

      The specified string must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f-\u009f). Also, it must not be the literal string arn.


    • workflow_id(impl Into<String>) / set_workflow_id(Option<String>):
      required: true

      The user defined identifier associated with the workflow execution. You can use this to associate a custom identifier with the workflow execution. You may specify the same identifier if a workflow execution is logically a restart of a previous execution. You cannot have two open workflow executions with the same workflowId at the same time within the same domain.

      The specified string must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f-\u009f). Also, it must not be the literal string arn.


    • workflow_type(WorkflowType) / set_workflow_type(Option<WorkflowType>):
      required: true

      The type of the workflow to start.


    • task_list(TaskList) / set_task_list(Option<TaskList>):
      required: false

      The task list to use for the decision tasks generated for this workflow execution. This overrides the defaultTaskList specified when registering the workflow type.

      A task list for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task list was specified at registration time then a fault is returned.

      The specified string must not contain a : (colon), / (slash), | (vertical bar), or any control characters (\u0000-\u001f | \u007f-\u009f). Also, it must not be the literal string arn.


    • task_priority(impl Into<String>) / set_task_priority(Option<String>):
      required: false

      The task priority to use for this workflow execution. This overrides any default priority that was assigned when the workflow type was registered. If not set, then the default task priority for the workflow type is used. Valid values are integers that range from Java’s Integer.MIN_VALUE (-2147483648) to Integer.MAX_VALUE (2147483647). Higher numbers indicate higher priority.

      For more information about setting task priority, see Setting Task Priority in the Amazon SWF Developer Guide.


    • input(impl Into<String>) / set_input(Option<String>):
      required: false

      The input for the workflow execution. This is a free form string which should be meaningful to the workflow you are starting. This input is made available to the new workflow execution in the WorkflowExecutionStarted history event.


    • execution_start_to_close_timeout(impl Into<String>) / set_execution_start_to_close_timeout(Option<String>):
      required: false

      The total duration for this workflow execution. This overrides the defaultExecutionStartToCloseTimeout specified when registering the workflow type.

      The duration is specified in seconds; an integer greater than or equal to 0. Exceeding this limit causes the workflow execution to time out. Unlike some of the other timeout parameters in Amazon SWF, you cannot specify a value of “NONE” for this timeout; there is a one-year max limit on the time that a workflow execution can run.

      An execution start-to-close timeout must be specified either through this parameter or as a default when the workflow type is registered. If neither this parameter nor a default execution start-to-close timeout is specified, a fault is returned.


    • tag_list(impl Into<String>) / set_tag_list(Option<Vec::<String>>):
      required: false

      The list of tags to associate with the workflow execution. You can specify a maximum of 5 tags. You can list workflow executions with a specific tag by calling ListOpenWorkflowExecutions or ListClosedWorkflowExecutions and specifying a TagFilter.


    • task_start_to_close_timeout(impl Into<String>) / set_task_start_to_close_timeout(Option<String>):
      required: false

      Specifies the maximum duration of decision tasks for this workflow execution. This parameter overrides the defaultTaskStartToCloseTimout specified when registering the workflow type using RegisterWorkflowType.

      The duration is specified in seconds, an integer greater than or equal to 0. You can use NONE to specify unlimited duration.

      A task start-to-close timeout for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default task start-to-close timeout was specified at registration time then a fault is returned.


    • child_policy(ChildPolicy) / set_child_policy(Option<ChildPolicy>):
      required: false

      If set, specifies the policy to use for the child workflow executions of this workflow execution if it is terminated, by calling the TerminateWorkflowExecution action explicitly or due to an expired timeout. This policy overrides the default child policy specified when registering the workflow type using RegisterWorkflowType.

      The supported child policies are:

      • TERMINATE – The child executions are terminated.

      • REQUEST_CANCEL – A request to cancel is attempted for each child execution by recording a WorkflowExecutionCancelRequested event in its history. It is up to the decider to take appropriate actions when it receives an execution history with this event.

      • ABANDON – No action is taken. The child executions continue to run.

      A child policy for this workflow execution must be specified either as a default for the workflow type or through this parameter. If neither this parameter is set nor a default child policy was specified at registration time then a fault is returned.


    • lambda_role(impl Into<String>) / set_lambda_role(Option<String>):
      required: false

      The IAM role to attach to this workflow execution.

      Executions of this workflow type need IAM roles to invoke Lambda functions. If you don’t attach an IAM role, any attempt to schedule a Lambda task fails. This results in a ScheduleLambdaFunctionFailed history event. For more information, see https://docs.aws.amazon.com/amazonswf/latest/developerguide/lambda-task.html in the Amazon SWF Developer Guide.


  • On success, responds with StartWorkflowExecutionOutput with field(s):
    • run_id(Option<String>):

      The runId of a workflow execution. This ID is generated by the service and can be used to uniquely identify the workflow execution within a domain.

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

impl Client

source

pub fn tag_resource(&self) -> TagResourceFluentBuilder

Constructs a fluent builder for the TagResource operation.

source§

impl Client

source

pub fn terminate_workflow_execution( &self ) -> TerminateWorkflowExecutionFluentBuilder

Constructs a fluent builder for the TerminateWorkflowExecution operation.

source§

impl Client

source

pub fn undeprecate_activity_type(&self) -> UndeprecateActivityTypeFluentBuilder

Constructs a fluent builder for the UndeprecateActivityType operation.

source§

impl Client

source

pub fn undeprecate_domain(&self) -> UndeprecateDomainFluentBuilder

Constructs a fluent builder for the UndeprecateDomain operation.

source§

impl Client

source

pub fn undeprecate_workflow_type(&self) -> UndeprecateWorkflowTypeFluentBuilder

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