pub trait FromServer<S>: FromClientHook {
type Dispatch: Server + 'static + DerefMut<Target = S>;
// Required method
fn from_server(s: S) -> Self::Dispatch;
}
Expand description
Trait to track the relationship between generated Server traits and Client structs.
Required Associated Types§
Required Methods§
fn from_server(s: S) -> Self::Dispatch
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.