Struct matchbox_signaling::WsStateMeta
source · pub struct WsStateMeta<Cb, S> {
pub peer_id: PeerId,
pub sender: SignalingChannel,
pub receiver: SplitStream<WebSocket>,
pub callbacks: Cb,
pub state: S,
}
Expand description
Metastate used during by a signaling server’s runtime
Fields§
§peer_id: PeerId
The peer connecting, by their ID
sender: SignalingChannel
The channel to signal this peer through
receiver: SplitStream<WebSocket>
The receiver to receive from this peer through
callbacks: Cb
Callbacks associated with the topology
state: S
State associated with the topology
Auto Trait Implementations§
impl<Cb, S> !RefUnwindSafe for WsStateMeta<Cb, S>
impl<Cb, S> Send for WsStateMeta<Cb, S>
impl<Cb, S> Sync for WsStateMeta<Cb, S>
impl<Cb, S> Unpin for WsStateMeta<Cb, S>
impl<Cb, S> !UnwindSafe for WsStateMeta<Cb, S>
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