[−][src]Struct mediasoup::plain_transport::PlainTransportOptions
Plain transport options.
Notes on usage
- Note that
comedia
mode just makes sense when the remote endpoint is gonna produce RTP on this plain transport. Otherwise, if the remote endpoint does not send any RTP (or SCTP) packet to mediasoup, there is no way to detect its remote RTP IP and port, so the endpoint won't receive any packet from mediasoup. - In other words, do not use
comedia
mode if the remote endpoint is not going to produce RTP but just consume it. In those cases, do not setcomedia
flag and callPlainTransport::connect()
with the IP and port(s) of the remote endpoint.
Fields (Non-exhaustive)
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.listen_ip: TransportListenIp
Listening IP address.
rtcp_mux: bool
Use RTCP-mux (RTP and RTCP in the same port). Default true.
comedia: bool
Whether remote IP:port should be auto-detected based on first RTP/RTCP packet received. If enabled, connect() method must not be called unless SRTP is enabled. If so, it must be called with just remote SRTP parameters. Default false.
enable_sctp: bool
Create a SCTP association. Default false.
num_sctp_streams: NumSctpStreams
SCTP streams number.
max_sctp_message_size: u32
Maximum allowed size for SCTP messages sent by DataProducers. Default 262144.
sctp_send_buffer_size: u32
Maximum SCTP send buffer used by DataConsumers. Default 262144.
enable_srtp: bool
Enable SRTP. For this to work, connect() must be called with remote SRTP parameters. Default false.
srtp_crypto_suite: SrtpCryptoSuite
The SRTP crypto suite to be used if enableSrtp is set. Default 'AesCm128HmacSha180'.
app_data: AppData
Custom application data.
Implementations
impl PlainTransportOptions
[src]
pub fn new(listen_ip: TransportListenIp) -> Self
[src]
Trait Implementations
impl Clone for PlainTransportOptions
[src]
pub fn clone(&self) -> PlainTransportOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PlainTransportOptions
[src]
Auto Trait Implementations
impl !RefUnwindSafe for PlainTransportOptions
[src]
impl Send for PlainTransportOptions
[src]
impl Sync for PlainTransportOptions
[src]
impl Unpin for PlainTransportOptions
[src]
impl !UnwindSafe for PlainTransportOptions
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,