Struct limiting_factor::kernel::MinimalService
source · pub struct MinimalService {
pub config: MinimalConfig,
pub routes: Vec<Route>,
}
Expand description
The minimal service allows to spawn a server without any extra feature.
Fields§
§config: MinimalConfig
§routes: Vec<Route>
Trait Implementations§
source§impl Service for MinimalService
impl Service for MinimalService
fn get_config(&self) -> &dyn Config
fn get_routes(&self) -> &[Route]
fn launch_server(&mut self) -> ErrorResult<()>
fn check_service_configuration(&self) -> ErrorResult<()>
fn run(&mut self) -> ErrorResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for MinimalService
impl Send for MinimalService
impl Sync for MinimalService
impl Unpin for MinimalService
impl !UnwindSafe for MinimalService
Blanket Implementations§
§impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
§fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where A: Array<Item = T>,
Converts
self
into a collection.