[][src]Struct mediasoup::sctp_parameters::SctpStreamParameters

pub struct SctpStreamParameters { /* fields omitted */ }

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

impl SctpStreamParameters[src]

pub fn new_ordered(stream_id: u16) -> Self[src]

Messages will be sent reliably in order.

pub fn new_unordered_with_life_time(
    stream_id: u16,
    max_packet_life_time: u16
) -> Self
[src]

Messages will be sent unreliably with time (in milliseconds) after which a SCTP packet will stop being retransmitted.

pub fn new_unordered_with_retransmits(
    stream_id: u16,
    max_retransmits: u16
) -> Self
[src]

Messages will be sent unreliably with a limited number of retransmission attempts.

Trait Implementations

impl Clone for SctpStreamParameters[src]

impl Copy for SctpStreamParameters[src]

impl Debug for SctpStreamParameters[src]

impl<'de> Deserialize<'de> for SctpStreamParameters[src]

impl Eq for SctpStreamParameters[src]

impl Hash for SctpStreamParameters[src]

impl Ord for SctpStreamParameters[src]

impl PartialEq<SctpStreamParameters> for SctpStreamParameters[src]

impl PartialOrd<SctpStreamParameters> for SctpStreamParameters[src]

impl Serialize for SctpStreamParameters[src]

impl StructuralEq for SctpStreamParameters[src]

impl StructuralPartialEq for SctpStreamParameters[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,