pub struct ServerHandle { /* private fields */ }Expand description
Handle for controlling the server from outside.
Implementations§
Source§impl ServerHandle
impl ServerHandle
Sourcepub fn close_session(&self, session_id: u64)
pub fn close_session(&self, session_id: u64)
Closes a specific session.
Sourcepub fn poll_events(&self) -> impl Iterator<Item = ServerEvent> + '_
pub fn poll_events(&self) -> impl Iterator<Item = ServerEvent> + '_
Polls for server events.
Auto Trait Implementations§
impl Freeze for ServerHandle
impl RefUnwindSafe for ServerHandle
impl Send for ServerHandle
impl Sync for ServerHandle
impl Unpin for ServerHandle
impl UnsafeUnpin for ServerHandle
impl UnwindSafe for ServerHandle
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