Skip to main content

ServiceClient

Trait ServiceClient 

Source
pub trait ServiceClient {
    // Required methods
    fn client(&self) -> &Client;
    fn client_mut(&mut self) -> &mut Client;
}
Available on crate feature client only.
Expand description

Generated <Service>Client newtypes implement this so extension traits can configure the underlying trillium_client::Client.

Required Methods§

Source

fn client(&self) -> &Client

The underlying connection client.

Source

fn client_mut(&mut self) -> &mut Client

The underlying connection client, mutably — the hook the ServiceClientExt setters write through.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§