Sans-IO RTMP 1.0 (Adobe Real-Time Messaging Protocol) ingest session engine — a driveable server-side publish state machine over the handshake, chunk stream, AMF0, and message layers; optional tokio socket adapter.
//! Sessions must stay movable between threads, or they cannot be run as their
//! own task on a multi-thread runtime. A `Cell`/`Rc` added later would break
//! that silently; these fail to compile instead.
usertmp_runtime::client::ClientSession;usertmp_runtime::server::ServerSession;fnassert_send<T:Send>(){}#[test]fnsessions_can_run_as_their_own_task(){assert_send::<ClientSession>();assert_send::<ServerSession>();}#[cfg(feature ="tokio")]#[test]fnthe_socket_adapters_can_run_as_their_own_task(){usertmp_runtime::io::{AsyncRtmpClient, AsyncRtmpServer, RtmpConnection};assert_send::<AsyncRtmpClient>();assert_send::<RtmpConnection>();assert_send::<AsyncRtmpServer>();}