Service

Trait Service 

Source
pub trait Service: FrameworkComponent {
    // Provided method
    fn service_id(&self) -> String { ... }
}
Expand description

Service trait for dependency injection

Provided Methods§

Source

fn service_id(&self) -> String

Service identifier - usually the type name

Trait Implementations§

Source§

impl Debug for dyn Service

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§