Skip to main content

ServiceDef

Trait ServiceDef 

Source
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§

Source

const NAME: &'static str

Required Associated Types§

Required Methods§

Source

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.

Implementors§