pub trait PassageImpl: 'static{
type State;
// Required methods
fn run(&self, h: PassageHandle, state: Self::State) -> PassageResult;
fn name(&self) -> &'static str;
fn module_path(&self) -> &'static str;
// Provided methods
fn with_state(&self, state: Self::State) -> Passage { ... }
fn registry_key(&self) -> String { ... }
}Required Associated Types§
Required Methods§
fn run(&self, h: PassageHandle, state: Self::State) -> PassageResult
fn name(&self) -> &'static str
fn module_path(&self) -> &'static str
Provided Methods§
Sourcefn with_state(&self, state: Self::State) -> Passage
fn with_state(&self, state: Self::State) -> Passage
Examples found in repository?
More examples
fn registry_key(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".