sentry::transports

Type Alias HttpTransport

Source
pub type HttpTransport = ReqwestHttpTransport;
Expand description

The default http transport.

Aliased Type§

struct HttpTransport { /* private fields */ }

Implementations

Source§

impl ReqwestHttpTransport

Source

pub fn new(options: &ClientOptions) -> Self

Creates a new Transport.

Source

pub fn with_client(options: &ClientOptions, client: ReqwestClient) -> Self

Creates a new Transport that uses the specified ReqwestClient.

Trait Implementations

Source§

impl Transport for ReqwestHttpTransport

Source§

fn send_envelope(&self, envelope: Envelope)

Sends an Envelope.
Source§

fn flush(&self, timeout: Duration) -> bool

Flushes the transport queue if there is one. Read more
Source§

fn shutdown(&self, timeout: Duration) -> bool

Instructs the Transport to shut down.