Struct sentry_tower::SentryService
source · [−]pub struct SentryService<S, P, H, Request> where
P: HubProvider<H, Request>,
H: Into<Arc<Hub>>, { /* private fields */ }
Expand description
Tower service that binds a specific Sentry hub for each request made.
Implementations
sourceimpl<S, P, H, Request> SentryService<S, P, H, Request> where
P: HubProvider<H, Request> + Clone,
H: Into<Arc<Hub>>,
impl<S, P, H, Request> SentryService<S, P, H, Request> where
P: HubProvider<H, Request> + Clone,
H: Into<Arc<Hub>>,
sourceimpl<S, Request> SentryService<S, NewFromTopProvider, Arc<Hub>, Request>
impl<S, Request> SentryService<S, NewFromTopProvider, Arc<Hub>, Request>
sourcepub fn new_from_top(service: S) -> Self
pub fn new_from_top(service: S) -> Self
Wrap a Tower service with a Tower layer that binds a Sentry hub for each request made.
Trait Implementations
sourceimpl<S, P, H, Request> Clone for SentryService<S, P, H, Request> where
S: Clone,
P: HubProvider<H, Request> + Clone,
H: Into<Arc<Hub>>,
impl<S, P, H, Request> Clone for SentryService<S, P, H, Request> where
S: Clone,
P: HubProvider<H, Request> + Clone,
H: Into<Arc<Hub>>,
sourceimpl<S, Request, P, H> Service<Request> for SentryService<S, P, H, Request> where
S: Service<Request>,
P: HubProvider<H, Request>,
H: Into<Arc<Hub>>,
impl<S, Request, P, H> Service<Request> for SentryService<S, P, H, Request> where
S: Service<Request>,
P: HubProvider<H, Request>,
H: Into<Arc<Hub>>,
Auto Trait Implementations
impl<S, P, H, Request> RefUnwindSafe for SentryService<S, P, H, Request> where
H: RefUnwindSafe,
P: RefUnwindSafe,
Request: RefUnwindSafe,
S: RefUnwindSafe,
impl<S, P, H, Request> Send for SentryService<S, P, H, Request> where
H: Send,
P: Send,
Request: Send,
S: Send,
impl<S, P, H, Request> Sync for SentryService<S, P, H, Request> where
H: Sync,
P: Sync,
Request: Sync,
S: Sync,
impl<S, P, H, Request> Unpin for SentryService<S, P, H, Request> where
H: Unpin,
P: Unpin,
Request: Unpin,
S: Unpin,
impl<S, P, H, Request> UnwindSafe for SentryService<S, P, H, Request> where
H: UnwindSafe,
P: UnwindSafe,
Request: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more