pub struct InactivePipeline { /* private fields */ }
Expand description
A type describing an “inactive” pipeline which is unconfigured and cannot acquire frames.
Implementations§
Source§impl InactivePipeline
impl InactivePipeline
Sourcepub fn start(self, config: Option<Config>) -> Result<ActivePipeline>
pub fn start(self, config: Option<Config>) -> Result<ActivePipeline>
Start the pipeline with an optional config.
The method consumes inactive pipeline itself, and returns the started pipeine.
Sourcepub fn resolve(&self, config: &Config) -> Option<PipelineProfile>
pub fn resolve(&self, config: &Config) -> Option<PipelineProfile>
Resolve a configuration and get the corresponding pipeline profile.
This function checks the pipeline to see if this config can be used to start the pipeline,
and if this configuration can be used it returns the pipeline profile (device and streams)
that will be used as the active profile when the pipeline is started. Otherwise, if this
configuration cannot resolve, this will return None
.
Sourcepub fn can_resolve(&self, config: &Config) -> bool
pub fn can_resolve(&self, config: &Config) -> bool
Predicate to check if a pipeline profile exists for a given configuration.
This predicate evaluates whether or not a configuration can be resolved to a device and set of streams (which constitute a pipeline profile) that can be used by the pipeline to start streaming.
Returns true iff the configuration can be satisfied and a pipeline profile can be constructed.