Skip to main content

ClientInformation

Trait ClientInformation 

Source
pub trait ClientInformation<T> {
    // Required methods
    fn create(transport: T) -> Self;
    fn transport(&self) -> &T;
    fn transport_mut(&mut self) -> &mut T;
    fn into_inner(self) -> T;
}
Expand description

Client utils methods

Required Methods§

Source

fn create(transport: T) -> Self

Create new client instance

Source

fn transport(&self) -> &T

Get reference to underlying transport

Source

fn transport_mut(&mut self) -> &mut T

Get mut referece to underlying transport

Source

fn into_inner(self) -> T

Consume client and return inner transport

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§