pub struct StdioProcessService { /* private fields */ }Trait Implementations§
Source§impl StateroomService for StdioProcessService
impl StateroomService for StdioProcessService
Source§fn disconnect(&mut self, client: ClientId)
fn disconnect(&mut self, client: ClientId)
Called each time a client disconnects from the service, unless that disconnection
will cause the service to be destroyed.
Source§fn message(&mut self, sender: ClientId, message: &str)
fn message(&mut self, sender: ClientId, message: &str)
Called each time a client sends a text message to the service.
Source§fn binary(&mut self, sender: ClientId, message: &[u8])
fn binary(&mut self, sender: ClientId, message: &[u8])
Called each time a client sends a binary message to the service.
Source§fn timer(&mut self)
fn timer(&mut self)
Called when StateroomContext::set_timer has been called on this service’s context,
after the provided duration.
Auto Trait Implementations§
impl Freeze for StdioProcessService
impl RefUnwindSafe for StdioProcessService
impl Send for StdioProcessService
impl Sync for StdioProcessService
impl Unpin for StdioProcessService
impl UnwindSafe for StdioProcessService
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