pub struct ServerBuilder { /* private fields */ }Expand description
TURN server builder.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn with_credentials<I: Iterator<Item = Credentials>>(
self,
credentials_list: I,
) -> Self
pub fn with_credentials<I: Iterator<Item = Credentials>>( self, credentials_list: I, ) -> Self
Set several credentials at once.
This function will overwrite credentials list entirely. Alternatively, you can
sequentially call Builder::add_credentials
Sourcepub fn add_credentials(self, cred: Credentials) -> Self
pub fn add_credentials(self, cred: Credentials) -> Self
Append credentials to the list.
Sourcepub fn bind_address(self, addr: &SocketAddr) -> Self
pub fn bind_address(self, addr: &SocketAddr) -> Self
Bind to specific interface and port.
pub fn with_external_address(self, addr: &IpAddr) -> Self
Sourcepub fn with_port_range(self, begin: u16, end: u16) -> Self
pub fn with_port_range(self, begin: u16, end: u16) -> Self
Set relayed port range.
pub fn with_allocations_limit(self, limit: u32) -> Self
pub fn with_peers_limit(self, limit: u32) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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