Struct InactivePipeline

Source
pub struct InactivePipeline { /* private fields */ }
Expand description

A type describing an “inactive” pipeline which is unconfigured and cannot acquire frames.

Implementations§

Source§

impl InactivePipeline

Source

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.

Source

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.

Source

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.

Trait Implementations§

Source§

impl Debug for InactivePipeline

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Drop for InactivePipeline

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

impl TryFrom<&Context> for InactivePipeline

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(context: &Context) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl Send for InactivePipeline

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.