pub struct Config {Show 28 fields
pub http_addr: String,
pub addr: String,
pub udp_port: u16,
pub log_level: Option<String>,
pub log_file: Option<String>,
pub http_access_skip_paths: Vec<String>,
pub useragent: Option<String>,
pub register_users: Option<Vec<RegisterOption>>,
pub graceful_shutdown: Option<bool>,
pub handler: Option<InviteHandlerConfig>,
pub accept_timeout: Option<String>,
pub codecs: Option<Vec<String>>,
pub external_ip: Option<String>,
pub rtp_start_port: Option<u16>,
pub rtp_end_port: Option<u16>,
pub enable_rtp_latching: Option<bool>,
pub enable_ice_lite: Option<bool>,
pub rtp_bind_ip: Option<String>,
pub tls_port: Option<u16>,
pub tls_cert_file: Option<String>,
pub tls_key_file: Option<String>,
pub enable_srtp: Option<bool>,
pub callrecord: Option<CallRecordConfig>,
pub media_cache_path: String,
pub ambiance: Option<AmbianceOption>,
pub ice_servers: Option<Vec<IceServer>>,
pub recording: Option<RecordingPolicy>,
pub rewrites: Option<Vec<RewriteRule>>,
}Fields§
§http_addr: String§addr: String§udp_port: u16§log_level: Option<String>§log_file: Option<String>§http_access_skip_paths: Vec<String>§useragent: Option<String>§register_users: Option<Vec<RegisterOption>>§graceful_shutdown: Option<bool>§handler: Option<InviteHandlerConfig>§accept_timeout: Option<String>§codecs: Option<Vec<String>>§external_ip: Option<String>§rtp_start_port: Option<u16>§rtp_end_port: Option<u16>§enable_rtp_latching: Option<bool>§enable_ice_lite: Option<bool>§rtp_bind_ip: Option<String>§tls_port: Option<u16>§tls_cert_file: Option<String>§tls_key_file: Option<String>§enable_srtp: Option<bool>§callrecord: Option<CallRecordConfig>§media_cache_path: String§ambiance: Option<AmbianceOption>§ice_servers: Option<Vec<IceServer>>§recording: Option<RecordingPolicy>§rewrites: Option<Vec<RewriteRule>>Implementations§
Source§impl Config
impl Config
pub fn load(path: &str) -> Result<Self, Error>
pub fn recorder_path(&self) -> String
pub fn recorder_format(&self) -> RecorderFormat
pub fn ensure_recording_defaults(&mut self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more