Struct sfu::ServerConfig
source · pub struct ServerConfig { /* private fields */ }
Expand description
ServerConfig provides customized parameters for SFU server
Implementations§
source§impl ServerConfig
impl ServerConfig
sourcepub fn new(certificates: Vec<RTCCertificate>) -> Self
pub fn new(certificates: Vec<RTCCertificate>) -> Self
create new server config
sourcepub fn with_media_config(self, media_config: MediaConfig) -> Self
pub fn with_media_config(self, media_config: MediaConfig) -> Self
build with provided MediaConfig
sourcepub fn with_sctp_server_config(
self,
sctp_server_config: Arc<ServerConfig>
) -> Self
pub fn with_sctp_server_config( self, sctp_server_config: Arc<ServerConfig> ) -> Self
build with provided sctp::ServerConfig
sourcepub fn with_sctp_endpoint_config(
self,
sctp_endpoint_config: Arc<EndpointConfig>
) -> Self
pub fn with_sctp_endpoint_config( self, sctp_endpoint_config: Arc<EndpointConfig> ) -> Self
build with provided sctp::EndpointConfig
sourcepub fn with_dtls_handshake_config(
self,
dtls_handshake_config: Arc<HandshakeConfig>
) -> Self
pub fn with_dtls_handshake_config( self, dtls_handshake_config: Arc<HandshakeConfig> ) -> Self
build with provided dtls::config::HandshakeConfig
sourcepub fn with_idle_timeout(self, idle_timeout: Duration) -> Self
pub fn with_idle_timeout(self, idle_timeout: Duration) -> Self
build with idle timeout
Auto Trait Implementations§
impl !RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl !UnwindSafe for ServerConfig
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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