Struct tk_pool::config::PoolConfig
[−]
[src]
pub struct PoolConfig<C, A, X, Q, E, M> { /* fields omitted */ }
A fully configured pool but you might override some defaults
Methods
impl<C, A, X, Q, E, M> PoolConfig<C, A, X, Q, E, M>
[src]
fn spawn_on(
self,
h: &Handle
) -> <Q as NewQueue<<<<C as Connect>::Future as Future>::Item as Sink>::SinkItem, <M as NewMetrics>::Collect>>::Pool where
A: Stream<Item = Address, Error = Void>,
C: Connect + 'static,
<<C as Connect>::Future as Future>::Item: Sink,
M: NewMetrics,
M::Collect: 'static,
X: NewMux<A, C, E::ErrorLog, M::Collect>,
<X as NewMux<A, C, E::ErrorLog, M::Collect>>::Sink: 'static,
E: NewErrorLog<<<C as Connect>::Future as Future>::Error, <<<C as Connect>::Future as Future>::Item as Sink>::SinkError>,
E::ErrorLog: Clone + 'static,
Q: NewQueue<<<<C as Connect>::Future as Future>::Item as Sink>::SinkItem, <M as NewMetrics>::Collect, Pool = <Q as NewQueue<<<<C as Connect>::Future as Future>::Item as Sink>::SinkItem, <M as NewMetrics>::Collect>>::Pool>,
[src]
self,
h: &Handle
) -> <Q as NewQueue<<<<C as Connect>::Future as Future>::Item as Sink>::SinkItem, <M as NewMetrics>::Collect>>::Pool where
A: Stream<Item = Address, Error = Void>,
C: Connect + 'static,
<<C as Connect>::Future as Future>::Item: Sink,
M: NewMetrics,
M::Collect: 'static,
X: NewMux<A, C, E::ErrorLog, M::Collect>,
<X as NewMux<A, C, E::ErrorLog, M::Collect>>::Sink: 'static,
E: NewErrorLog<<<C as Connect>::Future as Future>::Error, <<<C as Connect>::Future as Future>::Item as Sink>::SinkError>,
E::ErrorLog: Clone + 'static,
Q: NewQueue<<<<C as Connect>::Future as Future>::Item as Sink>::SinkItem, <M as NewMetrics>::Collect, Pool = <Q as NewQueue<<<<C as Connect>::Future as Future>::Item as Sink>::SinkItem, <M as NewMetrics>::Collect>>::Pool>,
Spawn a connection pool on the main loop specified by handle
fn lazy_uniform_connections(
self,
num: u32
) -> PoolConfig<C, A, LazyUniform, Q, E, M>
[src]
self,
num: u32
) -> PoolConfig<C, A, LazyUniform, Q, E, M>
Configure a uniform connection pool with specified number of per-host connections crated lazily (i.e. when there are requests)
fn with_queue_size(self, num: usize) -> PoolConfig<C, A, X, Queue, E, M>
[src]
Add a queue of size num used when no connection can accept a message