pub enum Inbound {
Connect(ConnId, String),
Text(ConnId, String),
Binary(ConnId, Vec<u8>),
Disconnect(ConnId),
}Expand description
An event coming into the hub.
Variants§
Connect(ConnId, String)
A socket connected to world_id (from the …/thread/:worldId path).
Text(ConnId, String)
A raw wire message arrived on a connection.
Binary(ConnId, Vec<u8>)
A binary frame arrived — a voice packet (presence-wire §6). Opaque audio payload; the hub only routes it.
Disconnect(ConnId)
A socket closed.
Auto Trait Implementations§
impl Freeze for Inbound
impl RefUnwindSafe for Inbound
impl Send for Inbound
impl Sync for Inbound
impl Unpin for Inbound
impl UnsafeUnpin for Inbound
impl UnwindSafe for Inbound
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