[][src]Struct tower_buffer::BufferLayer

pub struct BufferLayer<Request> { /* fields omitted */ }

Buffer requests with a bounded buffer


impl<Request> BufferLayer<Request>[src]

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

Create a new BufferLayer with the provided bound.

Trait Implementations

impl<Request> Debug for BufferLayer<Request>[src]

impl<S, Request> Layer<S> for BufferLayer<Request> where
    S: Service<Request> + Send + 'static,
    S::Future: Send,
    S::Error: Into<Box<dyn Error + Send + Sync>> + Send + Sync,
    Request: Send + 'static, 

type Service = Buffer<S, Request>

The wrapped service

Auto Trait Implementations

impl<Request> RefUnwindSafe for BufferLayer<Request>

impl<Request> Send for BufferLayer<Request>

impl<Request> Sync for BufferLayer<Request>

impl<Request> Unpin for BufferLayer<Request>

impl<Request> UnwindSafe for BufferLayer<Request>

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T, U> Into<U> for T where
    U: From<T>, 

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.