[][src]Trait sentry_actix::ActixWebHubExt

pub trait ActixWebHubExt {
    fn from_request<S>(req: &HttpRequest<S>) -> Arc<Hub>;
fn capture_actix_error(&self, err: &Error) -> Uuid; }

Hub extensions for actix.

Required methods

fn from_request<S>(req: &HttpRequest<S>) -> Arc<Hub>

Returns the hub from a given http request.

This requires that the SentryMiddleware middleware has been enabled or the call will panic.

fn capture_actix_error(&self, err: &Error) -> Uuid

Captures an actix error on the given hub.

Loading content...

Implementations on Foreign Types

impl ActixWebHubExt for Hub[src]

Loading content...

Implementors

Loading content...