[][src]Struct replicante_util_iron::SentryMiddleware

pub struct SentryMiddleware { /* fields omitted */ }

Iron middleware that sends non-success responses to sentry.

  • Responses with a status < 400 are ignored (2xx & 3xx).
  • Responses with a status < 500 are warnings (4xx).
  • Responses with all other codes are errors (5xx).

It is worth noting that handlers that fail with an IronError that carries a successful response (status < 400) will also not be logged.

Implementations

impl SentryMiddleware[src]

pub fn new(status_above: u16) -> SentryMiddleware[src]

Trait Implementations

impl AfterMiddleware for SentryMiddleware[src]

impl Default for SentryMiddleware[src]

Auto Trait Implementations

Blanket Implementations

impl<F> AfterMiddleware for F where
    F: Send + Sync + 'static + Fn(&mut Request, Response) -> Result<Response, IronError>, 
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

impl<T> Typeable for T where
    T: Any

impl<T> UnsafeAny for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,