pub struct RTCSctpTransport { /* private fields */ }
Expand description

SCTPTransport provides details about the SCTP transport.

Implementations

transport returns the DTLSTransport instance the SCTPTransport is sending over.

get_capabilities returns the SCTPCapabilities of the SCTPTransport.

Start the SCTPTransport. Since both local and remote parties must mutually create an SCTPTransport, SCTP SO (Simultaneous Open) is used to establish a connection over SCTP.

Stop stops the SCTPTransport

on_error sets an event handler which is invoked when the SCTP connection error occurs.

on_data_channel sets an event handler which is invoked when a data channel message arrives from a remote peer.

on_data_channel_opened sets an event handler which is invoked when a data channel is opened

max_channels is the maximum number of RTCDataChannels that can be open simultaneously.

state returns the current state of the SCTPTransport

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.