sentry_tower

Trait HubProvider

Source
pub trait HubProvider<H, Request>
where H: Into<Arc<Hub>>,
{ // Required method fn hub(&self, request: &Request) -> H; }
Expand description

Provides a hub for each request

Required Methods§

Source

fn hub(&self, request: &Request) -> H

Returns a hub to be bound to the request

Implementations on Foreign Types§

Source§

impl<Request> HubProvider<Arc<Hub>, Request> for Arc<Hub>

Source§

fn hub(&self, _request: &Request) -> Arc<Hub>

Implementors§

Source§

impl<H, F, Request> HubProvider<H, Request> for F
where F: Fn(&Request) -> H, H: Into<Arc<Hub>>,

Source§

impl<Request> HubProvider<Arc<Hub>, Request> for NewFromTopProvider