atm0s_media_server_transport_webrtc/transport/life_cycle.rs
1use transport::{TransportError, TransportStateEvent};
2
3use super::internal::Str0mInput;
4
5pub mod datachannel;
6pub mod no_datachannel;
7
8pub trait TransportLifeCycle: Send {
9 fn on_tick(&mut self, now_ms: u64);
10 fn on_transport_event(&mut self, now_ms: u64, event: &Str0mInput);
11 fn pop_action(&mut self) -> Option<Result<TransportStateEvent, TransportError>>;
12}