pub trait Proto {
type Type;
// Required methods
fn from_proto(src: Self::Type) -> Self;
fn into_proto(self) -> Self::Type;
}
Expand description
Indicates the prototype for a user-defined Exchange
-able enum.
Required Associated Types§
Required Methods§
fn from_proto(src: Self::Type) -> Self
fn into_proto(self) -> Self::Type
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.