o_sfu/application/user_session/
mod.rs1use std::sync::Arc;
2
3use o_sfu_protocol::wire::ServerEnvelope;
4
5mod client_input;
6mod lifecycle;
7mod media;
8mod room_events;
9
10use media::ServerMediaNegotiation;
11
12pub type UserOutput = Vec<ServerEnvelope>;
13
14#[derive(Debug, Clone, Copy, PartialEq, Eq)]
15pub enum UserError {
16 ProtocolViolation,
17 Kicked,
18 InternalError,
19}
20
21pub struct User {
22 remote_address: Arc<str>,
23 media: ServerMediaNegotiation,
24 cleanup_finished: bool,
25}