pub trait ServiceDef {
type Methods;
const NAME: &'static str;
// Required method
fn method_by_name(name: &str) -> Option<Self::Methods>;
}Expand description
Trait for service method definition
Required Associated Constants§
Required Associated Types§
Required Methods§
fn method_by_name(name: &str) -> Option<Self::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.