Struct sentry_core::test::TestTransport [−][src]
pub struct TestTransport { /* fields omitted */ }
Expand description
Collects events instead of sending them.
Examples
use sentry::test::TestTransport; use sentry::{ClientOptions, Hub}; use std::sync::Arc; let transport = TestTransport::new(); let options = ClientOptions { dsn: Some("https://public@example.com/1".parse().unwrap()), transport: Some(Arc::new(transport.clone())), ..ClientOptions::default() }; Hub::current().bind_client(Some(Arc::new(options.into())));
Implementations
Creates a new test transport.
Fetches and clears the contained events.
Fetches and clears the contained envelopes.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TestTransport
impl Send for TestTransport
impl Sync for TestTransport
impl Unpin for TestTransport
impl UnwindSafe for TestTransport