Struct cernan::source::RunnableSource [] [src]

pub struct RunnableSource<S, SConfig> where
    S: Send + Source<SConfig>,
    SConfig: 'static + Send + Clone
{ /* fields omitted */ }

Generic interface used to capture global source configuration parameters as well as source specific parameters.

Stored configuration is consumed when the source is spawned, resulting in a new thread which executes the given source.

Methods

impl<S, SConfig> RunnableSource<S, SConfig> where
    S: Send + Source<SConfig>,
    SConfig: 'static + Send + Clone
[src]

[src]

Constructs a new RunnableSource.

[src]

Spawns a thread corresponding to the given RunnableSource, consuming the given RunnableSource in the process.

Trait Implementations

Auto Trait Implementations

impl<S, SConfig> Send for RunnableSource<S, SConfig>

impl<S, SConfig> Sync for RunnableSource<S, SConfig> where
    S: Sync,
    SConfig: Sync