scufflecloud_ingest_traits/rtmps.rs
1use std::sync::Arc;
2
3pub trait RtmpsInterface: Send + Sync {
4 type RtmpsConfig: RtmpConfigInterface + Send + Sync;
5
6 fn rtmps_config(&self) -> Option<&Self::RtmpsConfig>;
7}
8
9pub trait RtmpConfigInterface: Send + Sync {
10 fn rtmps_bind(&self) -> std::net::SocketAddr;
11 fn rtmps_rustls_server_config(&self) -> Arc<rustls::ServerConfig>;
12}