[][src]Struct tower_buffer::BufferLayer

pub struct BufferLayer<Request, E = DefaultExecutor> { /* fields omitted */ }

Buffer requests with a bounded buffer

Methods

impl<Request> BufferLayer<Request, DefaultExecutor>[src]

pub fn new(bound: usize) -> Self[src]

impl<Request, E: Clone> BufferLayer<Request, E>[src]

pub fn with_executor(bound: usize, executor: E) -> Self[src]

Trait Implementations

impl<Request, E> Debug for BufferLayer<Request, E> where
    E: Debug
[src]

impl<E, S, Request> Layer<S> for BufferLayer<Request, E> where
    S: Service<Request>,
    S::Error: Into<Box<dyn Error + Send + Sync>>,
    E: WorkerExecutor<S, Request> + Clone
[src]

type Service = Buffer<S, Request>

The wrapped service

Auto Trait Implementations

impl<Request, E> Send for BufferLayer<Request, E> where
    E: Send

impl<Request, E> Unpin for BufferLayer<Request, E> where
    E: Unpin

impl<Request, E> Sync for BufferLayer<Request, E> where
    E: Sync

impl<Request, E> UnwindSafe for BufferLayer<Request, E> where
    E: UnwindSafe

impl<Request, E> RefUnwindSafe for BufferLayer<Request, E> where
    E: RefUnwindSafe

Blanket Implementations

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

impl<T> From<T> for T[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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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