pub trait SignalingTopology<Cb = NoCallbacks, S = NoState>where
Cb: SignalingCallbacks,
S: SignalingState,{
// Required method
fn state_machine<'async_trait>(
upgrade: WsStateMeta<Cb, S>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>;
}
Expand description
Topology produced by the signaling server
Required Methods§
sourcefn state_machine<'async_trait>(
upgrade: WsStateMeta<Cb, S>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
fn state_machine<'async_trait>( upgrade: WsStateMeta<Cb, S> ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
A run-to-completion state machine, spawned once for every socket.
Object Safety§
This trait is not object safe.