[−][src]Struct mediasoup::plain_transport::PlainTransport
Implementations
impl PlainTransport
[src]
pub async fn connect<'_>(
&'_ self,
remote_parameters: PlainTransportRemoteParameters
) -> Result<(), RequestError>
[src]
&'_ self,
remote_parameters: PlainTransportRemoteParameters
) -> Result<(), RequestError>
Provide the PlainTransport remote parameters.
pub async fn set_max_incoming_bitrate<'_>(
&'_ self,
bitrate: u32
) -> Result<(), RequestError>
[src]
&'_ self,
bitrate: u32
) -> Result<(), RequestError>
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]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_rtcp_tuple<F: Fn(&TransportTuple) + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_sctp_state_change<F: Fn(SctpState) + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
Trait Implementations
impl Clone for PlainTransport
[src]
pub fn clone(&self) -> PlainTransport
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Transport for PlainTransport
[src]
pub fn id(&self) -> TransportId
[src]
Transport id.
pub fn router_id(&self) -> RouterId
[src]
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]
&'life0 self,
producer_options: ProducerOptions
) -> Pin<Box<dyn Future<Output = Result<Producer, ProduceError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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]
&'life0 self,
consumer_options: ConsumerOptions
) -> Pin<Box<dyn Future<Output = Result<Consumer, ConsumeError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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]
&'life0 self,
data_producer_options: DataProducerOptions
) -> Pin<Box<dyn Future<Output = Result<DataProducer, ProduceDataError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
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]
&'life0 self,
data_consumer_options: DataConsumerOptions
) -> Pin<Box<dyn Future<Output = Result<DataConsumer, ConsumeDataError>> + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Create a DataConsumer.
Transport will be kept alive as long as at least one data consumer instance is alive.
Auto Trait Implementations
impl !RefUnwindSafe for PlainTransport
impl Send for PlainTransport
impl Sync for PlainTransport
impl Unpin for PlainTransport
impl !UnwindSafe for PlainTransport
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,