Skip to main content

ServiceActivator

Trait ServiceActivator 

Source
pub trait ServiceActivator:
    Send
    + Sync
    + Debug {
    // Required methods
    fn id(&self) -> &str;
    fn from(&self) -> &str;
    fn to(&self) -> &str;
    fn ref_name(&self) -> &str;
}
Expand description

Internal metadata describing how a service is wired. Users do NOT implement this directly; it is derived from specs.

Required Methods§

Source

fn id(&self) -> &str

Source

fn from(&self) -> &str

Source

fn to(&self) -> &str

Source

fn ref_name(&self) -> &str

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§