pub struct ServerConfig {
pub public_host: Option<String>,
pub public_port: Option<u16>,
pub sdp_username: String,
pub sdp_session_id: String,
pub sdp_session_version: String,
pub sdp_session_name: String,
}Expand description
Server-level configuration used by protocol handlers.
Fields§
§public_host: Option<String>Public host advertised in SDP o= and c= lines.
When None, host is inferred from request URI/client address.
public_port: Option<u16>Public RTSP port for future URL-based headers (e.g. RTP-Info).
sdp_username: StringSDP origin username field (o=<username> ...).
sdp_session_id: StringSDP origin session id field (o=... <session-id> ...).
sdp_session_version: StringSDP origin session version field (o=... ... <session-version> ...).
sdp_session_name: StringSDP session name (s=).
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerConfig
impl Debug for ServerConfig
Auto Trait Implementations§
impl Freeze for ServerConfig
impl RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl UnwindSafe for ServerConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more