pub struct Url {
pub scheme: SchemeType,
pub host: String,
pub port: u16,
pub username: String,
pub password: String,
pub proto: ProtoType,
}Expand description
Represents a STUN (rfc7064) or TURN (rfc7065) URL.
Fields§
§scheme: SchemeTypeThe URL scheme: stun, stuns, turn or turns.
host: StringThe server host name or address.
port: u16The server port; defaults to 3478, or 5349 for the secure schemes.
username: StringThe TURN username, for turn:/turns: URLs.
password: StringThe TURN credential.
proto: ProtoTypeThe transport to reach the server over, from the URL’s ?transport= parameter.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Url
impl RefUnwindSafe for Url
impl Send for Url
impl Sync for Url
impl Unpin for Url
impl UnsafeUnpin for Url
impl UnwindSafe for Url
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