pub enum WorkerEvent {
NewChan(ChannelHandle),
Notification(Topic, Vec<u8>),
}Expand description
Event about the connection that whatever is holding the worker handle would be interested in.
Variants§
NewChan(ChannelHandle)
New channel that’s been initiated by the remote.
Notification(Topic, Vec<u8>)
Oneshot notification sent by the remote.
Auto Trait Implementations§
impl Freeze for WorkerEvent
impl RefUnwindSafe for WorkerEvent
impl Send for WorkerEvent
impl Sync for WorkerEvent
impl Unpin for WorkerEvent
impl UnwindSafe for WorkerEvent
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