pub struct Server { /* private fields */ }Expand description
The Cortex socket server.
Implementations§
Source§impl Server
impl Server
Sourcepub fn with_mapper(
self,
renderer: Arc<dyn Renderer>,
mapper: Arc<Mapper>,
) -> Self
pub fn with_mapper( self, renderer: Arc<dyn Renderer>, mapper: Arc<Mapper>, ) -> Self
Attach a mapper and renderer to enable MAP and PERCEIVE requests.
Sourcepub fn shutdown_handle(&self) -> Arc<Notify>
pub fn shutdown_handle(&self) -> Arc<Notify>
Get the shutdown notifier (for external shutdown signaling).
Build a SharedState that can be shared with the REST API server.
Both the socket server and the REST server operate on the same maps, sessions, and dispatch logic through this shared state.
Auto Trait Implementations§
impl Freeze for Server
impl !RefUnwindSafe for Server
impl Send for Server
impl Sync for Server
impl Unpin for Server
impl UnsafeUnpin for Server
impl !UnwindSafe for Server
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