Trait FromClient

Source
pub trait FromClient {
    type Protocol: ProtocolMarker;

    // Required method
    fn from_client(value: ClientEnd<Self::Protocol>) -> Self;
}
Expand description

Trait implemented by types that can be converted from a client.

Required Associated Types§

Source

type Protocol: ProtocolMarker

The protocol.

Required Methods§

Source

fn from_client(value: ClientEnd<Self::Protocol>) -> Self

Converts from a client.

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§