[−][src]Enum mediasoup::data_consumer::DataConsumer
Variants (Non-exhaustive)
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Regular(RegularDataConsumer)
Direct(DirectDataConsumer)
Implementations
impl DataConsumer
[src]
pub fn id(&self) -> DataConsumerId
[src]
DataConsumer id.
pub fn data_producer_id(&self) -> DataProducerId
[src]
Associated DataProducer id.
pub fn type(&self) -> DataConsumerType
[src]
DataConsumer type.
pub fn sctp_stream_parameters(&self) -> Option<SctpStreamParameters>
[src]
SCTP stream parameters.
pub fn label(&self) -> &String
[src]
DataChannel label.
pub fn protocol(&self) -> &String
[src]
DataChannel protocol.
pub fn app_data(&self) -> &AppData
[src]
App custom data.
pub fn closed(&self) -> bool
[src]
pub async fn get_stats<'_>(
&'_ self
) -> Result<Vec<DataConsumerStat>, RequestError>
[src]
&'_ self
) -> Result<Vec<DataConsumerStat>, RequestError>
Get DataConsumer stats.
pub async fn get_buffered_amount<'_>(&'_ self) -> Result<u32, RequestError>
[src]
Get buffered amount size.
pub async fn set_buffered_amount_low_threshold<'_>(
&'_ self,
threshold: u32
) -> Result<(), RequestError>
[src]
&'_ self,
threshold: u32
) -> Result<(), RequestError>
Set buffered amount low threshold.
pub fn on_message<F: Fn(&WebRtcMessage) + Send + Sync + 'static>(
&self,
callback: F
) -> HandlerId
[src]
&self,
callback: F
) -> HandlerId
pub fn on_sctp_send_buffer_full<F: Fn() + Send + Sync + 'static>(
&self,
callback: F
) -> HandlerId
[src]
&self,
callback: F
) -> HandlerId
pub fn on_buffered_amount_low<F: Fn(u32) + Send + Sync + 'static>(
&self,
callback: F
) -> HandlerId
[src]
&self,
callback: F
) -> HandlerId
pub fn on_data_producer_close<F: FnOnce() + Send + 'static>(
&self,
callback: F
) -> HandlerId
[src]
&self,
callback: F
) -> HandlerId
pub fn on_transport_close<F: FnOnce() + Send + 'static>(
&self,
callback: F
) -> HandlerId
[src]
&self,
callback: F
) -> HandlerId
pub fn on_close<F: FnOnce() + Send + 'static>(&self, callback: F) -> HandlerId
[src]
Trait Implementations
impl Clone for DataConsumer
[src]
pub fn clone(&self) -> DataConsumer
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl From<DirectDataConsumer> for DataConsumer
[src]
pub fn from(producer: DirectDataConsumer) -> Self
[src]
impl From<RegularDataConsumer> for DataConsumer
[src]
pub fn from(producer: RegularDataConsumer) -> Self
[src]
Auto Trait Implementations
impl !RefUnwindSafe for DataConsumer
[src]
impl Send for DataConsumer
[src]
impl Sync for DataConsumer
[src]
impl Unpin for DataConsumer
[src]
impl !UnwindSafe for DataConsumer
[src]
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>,