#[non_exhaustive]pub struct PipeTransportOptions {
pub listen_info: ListenInfo,
pub enable_sctp: bool,
pub num_sctp_streams: NumSctpStreams,
pub max_sctp_message_size: u32,
pub sctp_send_buffer_size: u32,
pub enable_rtx: bool,
pub enable_srtp: bool,
pub app_data: AppData,
}
Expand description
PipeTransport
options.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.listen_info: ListenInfo
Listening info.
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 268_435_456.
sctp_send_buffer_size: u32
Maximum SCTP send buffer used by DataConsumers. Default 268_435_456.
enable_rtx: bool
Enable RTX and NACK for RTP retransmission. Useful if both Routers are located in different hosts and there is packet lost in the link. For this to work, both PipeTransports must enable this setting. Default false.
enable_srtp: bool
Enable SRTP. Useful to protect the RTP and RTCP traffic if both Routers are located in different hosts. For this to work, connect() must be called with remote SRTP parameters. Default false.
app_data: AppData
Custom application data.
Implementations§
Source§impl PipeTransportOptions
impl PipeTransportOptions
Sourcepub fn new(listen_info: ListenInfo) -> Self
pub fn new(listen_info: ListenInfo) -> Self
Create Pipe transport options with given listen IP.
Trait Implementations§
Source§impl Clone for PipeTransportOptions
impl Clone for PipeTransportOptions
Source§fn clone(&self) -> PipeTransportOptions
fn clone(&self) -> PipeTransportOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for PipeTransportOptions
impl !RefUnwindSafe for PipeTransportOptions
impl Send for PipeTransportOptions
impl Sync for PipeTransportOptions
impl Unpin for PipeTransportOptions
impl !UnwindSafe for PipeTransportOptions
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