pub struct ICEServer {
pub urls: Vec<String>,
pub username: String,
pub credential: String,
pub credential_type: ICECredentialType,
}
Expand description
ICEServer describes a single STUN and TURN server that can be used by the ICEAgent to establish a connection with a peer.
Fields§
§urls: Vec<String>
Array of strings, each specifying a URL which can be used to connect to the server.
username: String
If the object represents a TURN server, then this is the username to use during the authentication.
credential: String
The credential to use when logging into the server. This is only used if the object represents a TURN server.
credential_type: ICECredentialType
If the object represents a TURN server, this attribute specifies what kind of credential is to be used when connecting. The default is “password”.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ICEServer
impl<'de> Deserialize<'de> for ICEServer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ICEServer> for RTCIceServer
impl From<ICEServer> for RTCIceServer
impl Eq for ICEServer
impl StructuralPartialEq for ICEServer
Auto Trait Implementations§
impl Freeze for ICEServer
impl RefUnwindSafe for ICEServer
impl Send for ICEServer
impl Sync for ICEServer
impl Unpin for ICEServer
impl UnwindSafe for ICEServer
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