Struct ntex::util::buffer::BufferService [−][src]
pub struct BufferService<R, S, E> where
S: Service<R, Error = 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) -> BufferService<R, S, E> where
U: IntoService<S, R>,
F: 'static + Fn() -> E,
Trait Implementations
The future response value.
pub fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <BufferService<R, S, E> as Service<R>>::Error>>
pub fn poll_ready(
&self,
cx: &mut Context<'_>
) -> Poll<Result<(), <BufferService<R, S, E> as Service<R>>::Error>>
Returns Ready
when the service is able to process requests. Read more
Shutdown service. Read more
Process the request and return the response asynchronously. Read more
Map this service’s output to a different type, returning a new service of the resulting type. Read more
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