Skip to main content

Transport

Trait Transport 

Source
pub trait Transport:
    Send
    + Sync
    + 'static {
    // Required method
    fn send(
        &self,
        request: PushRequest,
    ) -> Pin<Box<dyn Future<Output = Sent> + Send + '_>>;
}
Expand description

Sends one push request. The collector’s sends through the egress client (PublicOnly); never one that reaches a private address.

Required Methods§

Source

fn send( &self, request: PushRequest, ) -> Pin<Box<dyn Future<Output = Sent> + Send + '_>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl Transport for EgressClient

The egress client sends a push as any other request (kernel spec §7.1): its policy refuses a non-public address before anything is sent, and an error never carries the endpoint.