pub struct Builder { /* private fields */ }Expand description
Agent builder.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn with_stun(self, host: String, port: u16) -> Self
pub fn with_stun(self, host: String, port: u16) -> Self
Set alternative stun server (default is “stun.l.google.com:19302”)
Sourcepub fn with_port_range(self, begin: u16, end: u16) -> Self
pub fn with_port_range(self, begin: u16, end: u16) -> Self
Set port range
Sourcepub fn with_bind_address(self, addr: &IpAddr) -> Self
pub fn with_bind_address(self, addr: &IpAddr) -> Self
Bind to specific address
Sourcepub fn add_turn_server<T>(
self,
host: T,
port: u16,
user: T,
pass: T,
) -> Result<Self>
pub fn add_turn_server<T>( self, host: T, port: u16, user: T, pass: T, ) -> Result<Self>
Add TURN server
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