pub struct PlainTransportRemoteParameters {
pub ip: Option<IpAddr>,
pub port: Option<u16>,
pub rtcp_port: Option<u16>,
pub srtp_parameters: Option<SrtpParameters>,
}
Expand description
Remote parameters for plain transport.
Fields
ip: Option<IpAddr>
Remote IPv4 or IPv6.
Required if comedia
is not set.
port: Option<u16>
Remote port.
Required if comedia
is not set.
rtcp_port: Option<u16>
Remote RTCP port.
Required if comedia
is not set and RTCP-mux is not enabled.
srtp_parameters: Option<SrtpParameters>
SRTP parameters used by the remote endpoint to encrypt its RTP and RTCP.
The SRTP crypto suite of the local srtpParameters
gets also updated after connect()
resolves.
Required if enable_srtp was set.
Trait Implementations
sourceimpl Clone for PlainTransportRemoteParameters
impl Clone for PlainTransportRemoteParameters
sourcefn clone(&self) -> PlainTransportRemoteParameters
fn clone(&self) -> PlainTransportRemoteParameters
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<'de> Deserialize<'de> for PlainTransportRemoteParameters
impl<'de> Deserialize<'de> for PlainTransportRemoteParameters
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for PlainTransportRemoteParameters
impl Send for PlainTransportRemoteParameters
impl Sync for PlainTransportRemoteParameters
impl Unpin for PlainTransportRemoteParameters
impl UnwindSafe for PlainTransportRemoteParameters
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more