[][src]Trait sentry::Transport

pub trait Transport: 'static + Send + Sync {
    fn send_envelope(&self, envelope: Envelope);

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

The trait for transports.

A transport is responsible for sending events to Sentry. Custom implementations can be created to use a different abstraction to send events. This is for instance used for the test system.

Required methods

fn send_envelope(&self, envelope: Envelope)

Sends an Envelope.

Loading content...

Provided methods

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

Drains the queue if there is one.

The default implementation does nothing. If the queue was successfully shutdowned the return value should be true or false if events were left in it.

Loading content...

Implementations on Foreign Types

impl<T> Transport for Arc<T> where
    T: Transport
[src]

Loading content...

Implementors

impl Transport for TestTransport[src]

impl Transport for CurlHttpTransport[src]

impl Transport for ReqwestHttpTransport[src]

impl Transport for SurfHttpTransport[src]

Loading content...