pub struct SctpStreamParameters { /* private fields */ }
Expand description
SCTP stream parameters describe the reliability of a certain SCTP stream.
If ordered is true then max_packet_life_time
and max_retransmits
must be false
.
If ordered if false, only one of max_packet_life_time
or max_retransmits can be true
.
Implementations§
Source§impl SctpStreamParameters
impl SctpStreamParameters
Sourcepub fn ordered(&self) -> bool
pub fn ordered(&self) -> bool
Whether data messages must be received in order. If true
the messages will be sent
reliably.
Sourcepub fn max_packet_life_time(&self) -> Option<u16>
pub fn max_packet_life_time(&self) -> Option<u16>
When ordered
is false
indicates the time (in milliseconds) after which a SCTP packet
will stop being retransmitted.
Sourcepub fn max_retransmits(&self) -> Option<u16>
pub fn max_retransmits(&self) -> Option<u16>
When ordered
is false
indicates the maximum number of times a packet will be
retransmitted.
Source§impl SctpStreamParameters
impl SctpStreamParameters
Sourcepub fn new_ordered(stream_id: u16) -> Self
pub fn new_ordered(stream_id: u16) -> Self
Messages will be sent reliably in order.
Sourcepub fn new_unordered_with_life_time(
stream_id: u16,
max_packet_life_time: u16,
) -> Self
pub fn new_unordered_with_life_time( stream_id: u16, max_packet_life_time: u16, ) -> Self
Messages will be sent unreliably with time (in milliseconds) after which a SCTP packet will stop being retransmitted.
Sourcepub fn new_unordered_with_retransmits(
stream_id: u16,
max_retransmits: u16,
) -> Self
pub fn new_unordered_with_retransmits( stream_id: u16, max_retransmits: u16, ) -> Self
Messages will be sent unreliably with a limited number of retransmission attempts.
Trait Implementations§
Source§impl Clone for SctpStreamParameters
impl Clone for SctpStreamParameters
Source§fn clone(&self) -> SctpStreamParameters
fn clone(&self) -> SctpStreamParameters
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more