Skip to main content

Component

Trait Component 

Source
pub trait Component {
    // Required methods
    fn identifier(&self) -> &ID;
    async fn start(&mut self) -> Result<(), ComponentError>;
}

Required Methods§

Source

fn identifier(&self) -> &ID

Source

async fn start(&mut self) -> Result<(), ComponentError>

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§