[][src]Trait replicante_util_actixweb::ActixWebHubExt

pub trait ActixWebHubExt {
    fn from_request(req: &HttpRequest) -> Arc<Hub>;
fn run_from_request<F: FnOnce() -> R, R>(req: &HttpRequest, f: F) -> R; }

Sentry Hub extension with actix-web methods.

Required methods

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

Extract the Hub attached to a request.

fn run_from_request<F: FnOnce() -> R, R>(req: &HttpRequest, f: F) -> R

Invoke a callback with the Hub attached to a request.

Loading content...

Implementations on Foreign Types

impl ActixWebHubExt for Hub[src]

Loading content...

Implementors

Loading content...