use rocket::{Build, Rocket}; use crate::Actuator; pub trait RocketConfigurerer { fn configure(self, rocket: Rocket) -> Rocket; } impl Actuator { pub fn new(rocket: Rocket) -> Self { Self { rocket } } pub fn with_configurer(mut self, configurer: T) -> Actuator { self.rocket = configurer.configure(self.rocket); self } pub fn get(self) -> Rocket { self.rocket } }