pub enum Msg {
Open(SessionId, TokenConfig, Arc<Outbox>),
Text(SessionId, String),
Close(SessionId),
Worker(Event),
WriteDone(Box<WriteDone>),
Timeout(SessionId, String, u64),
Resend(String),
SavePages,
Stop(Sender<()>),
}Expand description
Messages to the hub task.
Variants§
Open(SessionId, TokenConfig, Arc<Outbox>)
A client said hello with a valid token.
Text(SessionId, String)
A text message from a client.
Close(SessionId)
A client went away.
Worker(Event)
A worker’s event.
WriteDone(Box<WriteDone>)
A write finished.
Timeout(SessionId, String, u64)
A pressed button’s watchdog fired.
Resend(String)
Write an owed release again.
SavePages
Save the learned pages.
Stop(Sender<()>)
Release everything, stop the workers, save, flush the audit log.
Auto Trait Implementations§
impl !RefUnwindSafe for Msg
impl !UnwindSafe for Msg
impl Freeze for Msg
impl Send for Msg
impl Sync for Msg
impl Unpin for Msg
impl UnsafeUnpin for Msg
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