Service

Trait Service 

Source
pub trait Service {
    type Client: Client;

    // Provided method
    fn new_client(account_id: AccountID) -> Self::Client { ... }
}
Expand description

A type that represents some sort of handler service and thus has an associated client type. This is used to create clients for the service.

Required Associated Types§

Source

type Client: Client

The client type associated with the service.

Provided Methods§

Source

fn new_client(account_id: AccountID) -> Self::Client

Create a new client for the service with the given account ID.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§