Skip to main content

spawn_accept_bounded

Function spawn_accept_bounded 

Source
pub async fn spawn_accept_bounded<S: DeviceSession, F: Fn() -> S + Send + Sync + Clone + 'static>(
    ctx: SpawnContext,
    protocol: Arc<dyn Server>,
    factory: F,
    kinds: &'static [EventType],
    listener: TcpListener,
) -> Result<SocketAddr>