[][src]Struct mediasoup::plain_transport::PlainTransport

pub struct PlainTransport { /* fields omitted */ }

Implementations

impl PlainTransport[src]

pub async fn connect<'_>(
    &'_ self,
    remote_parameters: PlainTransportRemoteParameters
) -> Result<(), RequestError>
[src]

Provide the PlainTransport remote parameters.

pub async fn set_max_incoming_bitrate<'_>(
    &'_ self,
    bitrate: u32
) -> Result<(), RequestError>
[src]

Set maximum incoming bitrate for receiving media.

pub fn tuple(&self) -> TransportTuple[src]

Transport tuple.

pub fn rtcp_tuple(&self) -> Option<TransportTuple>[src]

Transport RTCP tuple.

pub fn sctp_parameters(&self) -> Option<SctpParameters>[src]

SCTP parameters.

pub fn sctp_state(&self) -> Option<SctpState>[src]

SCTP state.

pub fn srtp_parameters(&self) -> Option<SrtpParameters>[src]

SRTP parameters.

pub fn on_tuple<F: Fn(&TransportTuple) + Send + 'static>(
    &self,
    callback: F
) -> HandlerId<'static>
[src]

pub fn on_rtcp_tuple<F: Fn(&TransportTuple) + Send + 'static>(
    &self,
    callback: F
) -> HandlerId<'static>
[src]

pub fn on_sctp_state_change<F: Fn(SctpState) + Send + 'static>(
    &self,
    callback: F
) -> HandlerId<'static>
[src]

Trait Implementations

impl Clone for PlainTransport[src]

impl Transport for PlainTransport[src]

pub fn id(&self) -> TransportId[src]

Transport id.

pub fn app_data(&self) -> &AppData[src]

App custom data.

pub fn produce<'life0, 'async_trait>(
    &'life0 self,
    producer_options: ProducerOptions
) -> Pin<Box<dyn Future<Output = Result<Producer, ProduceError>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Create a Producer.

Transport will be kept alive as long as at least one producer instance is alive.

pub fn consume<'life0, 'async_trait>(
    &'life0 self,
    consumer_options: ConsumerOptions
) -> Pin<Box<dyn Future<Output = Result<Consumer, ConsumeError>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Create a Consumer.

Transport will be kept alive as long as at least one consumer instance is alive.

pub fn produce_data<'life0, 'async_trait>(
    &'life0 self,
    data_producer_options: DataProducerOptions
) -> Pin<Box<dyn Future<Output = Result<DataProducer, ProduceDataError>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Create a DataProducer.

Transport will be kept alive as long as at least one data producer instance is alive.

pub fn consume_data<'life0, 'async_trait>(
    &'life0 self,
    data_consumer_options: DataConsumerOptions
) -> Pin<Box<dyn Future<Output = Result<DataConsumer, ConsumeDataError>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Create a DataConsumer.

Transport will be kept alive as long as at least one data consumer instance is alive.

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> 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>,