Trait sentry_actix::ActixWebHubExt [−][src]
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.
Implementations on Foreign Types
impl ActixWebHubExt for Hub
[src]
impl ActixWebHubExt for Hub
fn from_request<S>(req: &HttpRequest<S>) -> &Arc<Hub>
[src]
fn from_request<S>(req: &HttpRequest<S>) -> &Arc<Hub>
fn capture_actix_error(&self, err: &Error) -> Uuid
[src]
fn capture_actix_error(&self, err: &Error) -> Uuid