Struct sentry::transports::ReqwestHttpTransport
source · [−]pub struct ReqwestHttpTransport { /* private fields */ }
Expand description
A transport can send events via HTTP to sentry via reqwest
.
When the with_default_transport
feature is enabled this will currently
be the default transport. This is separately enabled by the
with_reqwest_transport
flag.
Implementations
sourceimpl ReqwestHttpTransport
impl ReqwestHttpTransport
sourcepub fn new(options: &ClientOptions) -> Self
pub fn new(options: &ClientOptions) -> Self
Creates a new transport.
sourcepub fn with_client(options: &ClientOptions, client: Client) -> Self
pub fn with_client(options: &ClientOptions, client: Client) -> Self
Creates a new transport that uses the passed HTTP client.
Trait Implementations
sourceimpl Drop for ReqwestHttpTransport
impl Drop for ReqwestHttpTransport
Auto Trait Implementations
impl !RefUnwindSafe for ReqwestHttpTransport
impl Send for ReqwestHttpTransport
impl Sync for ReqwestHttpTransport
impl Unpin for ReqwestHttpTransport
impl !UnwindSafe for ReqwestHttpTransport
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more