[][src]Trait mediasoup::transport::TransportGeneric

pub trait TransportGeneric<Dump, Stat>: Transport {
#[must_use]    pub fn dump<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Dump, RequestError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn get_stats<'life0, 'async_trait>(
        &'life0 self
    ) -> Pin<Box<dyn Future<Output = Result<Vec<Stat>, RequestError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
#[must_use] pub fn enable_trace_event<'life0, 'async_trait>(
        &'life0 self,
        types: Vec<TransportTraceEventType>
    ) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
;
pub fn on_new_producer<F: Fn(&Producer) + Send + 'static>(
        &self,
        callback: F
    ) -> HandlerId<'static>;
pub fn on_new_consumer<F: Fn(&Consumer) + Send + 'static>(
        &self,
        callback: F
    ) -> HandlerId<'static>;
pub fn on_new_data_producer<F: Fn(&DataProducer) + Send + 'static>(
        &self,
        callback: F
    ) -> HandlerId<'static>;
pub fn on_new_data_consumer<F: Fn(&DataConsumer) + Send + 'static>(
        &self,
        callback: F
    ) -> HandlerId<'static>;
pub fn on_trace<F: Fn(&TransportTraceEventData) + Send + 'static>(
        &self,
        callback: F
    ) -> HandlerId<'static>;
pub fn on_close<F: FnOnce() + Send + 'static>(
        &self,
        callback: F
    ) -> HandlerId<'static>; }

Required methods

#[must_use]pub fn dump<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Dump, RequestError>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Dump Transport.

#[must_use]pub fn get_stats<'life0, 'async_trait>(
    &'life0 self
) -> Pin<Box<dyn Future<Output = Result<Vec<Stat>, RequestError>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Get Transport stats.

#[must_use]pub fn enable_trace_event<'life0, 'async_trait>(
    &'life0 self,
    types: Vec<TransportTraceEventType>
) -> Pin<Box<dyn Future<Output = Result<(), RequestError>> + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

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

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

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

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

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

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

Loading content...

Implementors

Loading content...