pub unsafe trait WireCompatible<T: Message>: Message + Default {
// Provided method
fn convert(old: &T) -> Self { ... }
}
Expand description
Denotes that Self
is wire compatible with type T
.
You should not implement this yourself, instead use the wire_compatible!
macro.
Provided Methods§
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.