Trait sentry_tower::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