pub trait Transport:
Send
+ Sync
+ 'static {
// Required method
fn send_envelope(&self, envelope: Envelope);
// Provided methods
fn flush(&self, timeout: Duration) -> bool { ... }
fn shutdown(&self, timeout: Duration) -> bool { ... }
}
Expand description
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§
Sourcefn send_envelope(&self, envelope: Envelope)
fn send_envelope(&self, envelope: Envelope)
Sends an Envelope
.
Provided Methods§
Implementations on Foreign Types§
Implementors§
impl Transport for TestTransport
impl Transport for CurlHttpTransport
Available on crate feature
curl
only.impl Transport for ReqwestHttpTransport
Available on crate feature
reqwest
only.impl Transport for UreqHttpTransport
Available on crate feature
ureq
only.