pub struct Config {
pub server_addr: SocketAddr,
pub own_addr: SocketAddr,
pub username: String,
pub password: String,
pub rtp_port_start: u16,
pub rtp_port_end: u16,
}
Fields§
§server_addr: SocketAddr
SIP Server address with port
own_addr: SocketAddr
Address used to be reached for RTP session, usually the current IP
username: String
SIP Username
password: String
SIP Password
rtp_port_start: u16
Start of the RTP port range
rtp_port_end: u16
End of the RTP port range, must be > to rtp_port_start
Implementations§
Source§impl Config
impl Config
pub fn get_own_uri(&self) -> Uri
pub fn get_own_contact(&self) -> Contact
pub fn get_own_via(&self) -> Via
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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