[][src]Struct smartpool::PoolConfig

pub struct PoolConfig<Behavior: PoolBehavior> {
    pub threads: u32,
    pub schedule: ScheduleAlgorithm,
    pub levels: Vec<Vec<ChannelParams<Behavior>>>,
}

Config data produced by the pool behavior to configure the pool.

Fields

threads: u32

Worker thread count

schedule: ScheduleAlgorithm

Schedule algorithm

levels: Vec<Vec<ChannelParams<Behavior>>>

Priority levels, from highest to lowest, containing vecs of all the channels in that level

Auto Trait Implementations

impl<Behavior> Send for PoolConfig<Behavior> where
    <Behavior as PoolBehavior>::ChannelKey: Send

impl<Behavior> Sync for PoolConfig<Behavior> where
    <Behavior as PoolBehavior>::ChannelKey: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.