pub struct ServerBuilder { /* private fields */ }Expand description
Implementations§
Source§impl ServerBuilder
impl ServerBuilder
Sourcepub fn with_link_service(self, service: impl LinkService + 'static) -> Self
pub fn with_link_service(self, service: impl LinkService + 'static) -> Self
Set the link service (required)
Sourcepub fn register_module(self, module: impl Module + 'static) -> Result<Self>
pub fn register_module(self, module: impl Module + 'static) -> Result<Self>
Register a module
This will:
- Load the module’s configuration
- Register all entities from the module
- Store the module for entity fetching
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ServerBuilder
impl !RefUnwindSafe for ServerBuilder
impl Send for ServerBuilder
impl Sync for ServerBuilder
impl Unpin for ServerBuilder
impl !UnwindSafe for ServerBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more