[−][src]Struct mediasoup::webrtc_transport::WebRtcTransport
Implementations
impl WebRtcTransport
[src]
pub async fn connect<'_>(
&'_ self,
remote_parameters: WebRtcTransportRemoteParameters
) -> Result<(), RequestError>
[src]
&'_ self,
remote_parameters: WebRtcTransportRemoteParameters
) -> Result<(), RequestError>
Provide the WebRtcTransport 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 ice_role(&self) -> IceRole
[src]
ICE role.
pub fn ice_parameters(&self) -> IceParameters
[src]
ICE parameters.
pub fn ice_candidates(&self) -> Vec<IceCandidate>
[src]
ICE candidates.
pub fn ice_state(&self) -> IceState
[src]
ICE state.
pub fn ice_selected_tuple(&self) -> Option<TransportTuple>
[src]
ICE selected tuple.
pub fn dtls_parameters(&self) -> DtlsParameters
[src]
DTLS parameters.
pub fn dtls_state(&self) -> DtlsState
[src]
DTLS state.
pub fn dtls_remote_cert(&self) -> Option<String>
[src]
Remote certificate in PEM format.
pub fn sctp_parameters(&self) -> Option<SctpParameters>
[src]
SCTP parameters.
pub fn sctp_state(&self) -> Option<SctpState>
[src]
SCTP state.
pub async fn restart_ice<'_>(&'_ self) -> Result<IceParameters, RequestError>
[src]
Restart ICE.
pub fn on_ice_state_change<F: Fn(IceState) + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_ice_selected_tuple_change<F: Fn(&TransportTuple) + Send + 'static>(
&self,
callback: F
) -> HandlerId<'static>
[src]
&self,
callback: F
) -> HandlerId<'static>
pub fn on_dtls_state_change<F: Fn(DtlsState) + 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 WebRtcTransport
[src]
pub fn clone(&self) -> WebRtcTransport
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Transport for WebRtcTransport
[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 WebRtcTransport
impl Send for WebRtcTransport
impl Sync for WebRtcTransport
impl Unpin for WebRtcTransport
impl !UnwindSafe for WebRtcTransport
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>,