EventSender

Trait EventSender 

Source
pub trait EventSender:
    Send
    + Sync
    + 'static {
    // Required methods
    fn send_active_connection_event<'life0, 'async_trait>(
        &'life0 self,
        event: Vec<ConnectionEvent>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_latency_metrics_event<'life0, 'async_trait>(
        &'life0 self,
        event: Vec<LatencyMetric>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_dropped_packet_metrics_event<'life0, 'async_trait>(
        &'life0 self,
        event: Vec<DroppedPacketMetric>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;

    // Provided methods
    fn send_active_connection_event_map<'life0, 'async_trait>(
        &'life0 self,
        map: Vec<ConnectionEvent>,
        tx: Sender<Result<Vec<ConnectionEvent>, Status>>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn send_latency_metrics_event_map<'life0, 'async_trait>(
        &'life0 self,
        map: Vec<LatencyMetric>,
        tx: Sender<Result<Vec<LatencyMetric>, Status>>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
    fn send_dropped_packet_metrics_event_map<'life0, 'async_trait>(
        &'life0 self,
        map: Vec<DroppedPacketMetric>,
        tx: Sender<Result<Vec<DroppedPacketMetric>, Status>>,
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait { ... }
}

Required Methods§

Source

fn send_active_connection_event<'life0, 'async_trait>( &'life0 self, event: Vec<ConnectionEvent>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn send_latency_metrics_event<'life0, 'async_trait>( &'life0 self, event: Vec<LatencyMetric>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn send_dropped_packet_metrics_event<'life0, 'async_trait>( &'life0 self, event: Vec<DroppedPacketMetric>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Provided Methods§

Source

fn send_active_connection_event_map<'life0, 'async_trait>( &'life0 self, map: Vec<ConnectionEvent>, tx: Sender<Result<Vec<ConnectionEvent>, Status>>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn send_latency_metrics_event_map<'life0, 'async_trait>( &'life0 self, map: Vec<LatencyMetric>, tx: Sender<Result<Vec<LatencyMetric>, Status>>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn send_dropped_packet_metrics_event_map<'life0, 'async_trait>( &'life0 self, map: Vec<DroppedPacketMetric>, tx: Sender<Result<Vec<DroppedPacketMetric>, Status>>, ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§