[][src]Struct eve_rs::DefaultMiddleware

pub struct DefaultMiddleware<TData> where
    TData: Default + Clone + Send + Sync
{ /* fields omitted */ }

Implementations

impl<TData> DefaultMiddleware<TData> where
    TData: Default + Clone + Send + Sync
[src]

pub fn new(
    handler: fn(_: DefaultContext, _: NextHandler<DefaultContext>) -> Pin<Box<dyn Future<Output = Result<DefaultContext, Error<DefaultContext>>> + Send>>
) -> Self
[src]

pub fn new_with_data(
    handler: fn(_: DefaultContext, _: NextHandler<DefaultContext>) -> Pin<Box<dyn Future<Output = Result<DefaultContext, Error<DefaultContext>>> + Send>>,
    data: TData
) -> Self
[src]

Trait Implementations

impl<TData: Clone> Clone for DefaultMiddleware<TData> where
    TData: Default + Clone + Send + Sync
[src]

impl<TData> Middleware<DefaultContext> for DefaultMiddleware<TData> where
    TData: Default + Clone + Send + Sync
[src]

Auto Trait Implementations

impl<TData> RefUnwindSafe for DefaultMiddleware<TData> where
    TData: RefUnwindSafe
[src]

impl<TData> Send for DefaultMiddleware<TData>[src]

impl<TData> Sync for DefaultMiddleware<TData>[src]

impl<TData> Unpin for DefaultMiddleware<TData> where
    TData: Unpin
[src]

impl<TData> UnwindSafe for DefaultMiddleware<TData> where
    TData: UnwindSafe
[src]

Blanket Implementations

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> Instrument for T[src]

impl<T> Instrument for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.