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§
Provided Methods§
Sourcefn new_client(account_id: AccountID) -> Self::Client
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.