Struct sentry_actix::Sentry
source · pub struct Sentry { /* private fields */ }
Expand description
Reports certain failures to Sentry.
Implementations§
source§impl Sentry
impl Sentry
sourcepub fn with_transaction() -> Sentry
pub fn with_transaction() -> Sentry
Creates a new sentry middleware which starts a new performance monitoring transaction for each request.
sourcepub fn builder() -> SentryBuilder
pub fn builder() -> SentryBuilder
Creates a new middleware builder.
sourcepub fn into_builder(self) -> SentryBuilder
pub fn into_builder(self) -> SentryBuilder
Converts the middleware into a builder.
Trait Implementations§
source§impl<S, B> Transform<S, ServiceRequest> for Sentry
impl<S, B> Transform<S, ServiceRequest> for Sentry
§type Response = ServiceResponse<B>
type Response = ServiceResponse<B>
Responses produced by the service.
§type Transform = SentryMiddleware<S>
type Transform = SentryMiddleware<S>
The
TransformService
value created by this factory§type Future = Ready<Result<<Sentry as Transform<S, ServiceRequest>>::Transform, <Sentry as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<Sentry as Transform<S, ServiceRequest>>::Transform, <Sentry as Transform<S, ServiceRequest>>::InitError>>
The future response value.
source§fn new_transform(&self, service: S) -> Self::Future
fn new_transform(&self, service: S) -> Self::Future
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations§
impl Freeze for Sentry
impl RefUnwindSafe for Sentry
impl Send for Sentry
impl Sync for Sentry
impl Unpin for Sentry
impl UnwindSafe for Sentry
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more