pub struct Server<W: Clone> { /* private fields */ }
Implementations§
Source§impl<W: Clone> Server<W>
impl<W: Clone> Server<W>
pub fn new() -> ServerBuilder<W>
pub fn handle_message( &self, world: W, message: Message, writer: impl MessageWriter + Clone + 'static, ) -> impl Future<Output = Result<(), Error>>
pub async fn is_shutting_down(&self) -> bool
Auto Trait Implementations§
impl<W> Freeze for Server<W>
impl<W> !RefUnwindSafe for Server<W>
impl<W> !Send for Server<W>
impl<W> !Sync for Server<W>
impl<W> Unpin for Server<W>
impl<W> !UnwindSafe for Server<W>
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