Struct ntex::util::buffer::BufferService [−][src]
pub struct BufferService<R, S: Service<R, Error = E>, E> { /* fields omitted */ }
Expand description
Buffer service - service that can buffer incoming requests.
Default number of buffered requests is 16
Implementations
pub fn new<U, F>(size: usize, err: F, service: U) -> Self where
U: IntoService<S, R>,
F: Fn() -> E + 'static,
Trait Implementations
Auto Trait Implementations
impl<R, S, E> !RefUnwindSafe for BufferService<R, S, E>
impl<R, S, E> !Send for BufferService<R, S, E>
impl<R, S, E> !Sync for BufferService<R, S, E>
impl<R, S, E> Unpin for BufferService<R, S, E>
impl<R, S, E> !UnwindSafe for BufferService<R, S, E>
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert to a Service
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more