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§
Sourcefn client_mut(&mut self) -> &mut Client
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".