Struct limiting_factor::kernel::MinimalService
source · pub struct MinimalService {
pub config: MinimalConfig,
pub routes: Box<Vec<Route>>,
}
Expand description
The minimal service allows to spawn a server without any extra feature.
Fields
config: MinimalConfig
routes: Box<Vec<Route>>
Trait Implementations
sourceimpl 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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.