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§
Sourcetype Protocol: ProtocolMarker
type Protocol: ProtocolMarker
The protocol.
Required Methods§
Sourcefn from_client(value: ClientEnd<Self::Protocol>) -> Self
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.