Type Definition realsense_rust::pipeline::InactivePipeline[][src]

type InactivePipeline = Pipeline<Inactive>;

Implementations

impl InactivePipeline[src]

pub fn new() -> Result<Self>[src]

Creates an instance.

pub fn from_context(context: Context) -> Result<Self>[src]

Consumes a context and creates an instance.

pub fn start(self, config: impl Into<Option<Config>>) -> Result<ActivePipeline>[src]

Start the pipeline with optional config.

The method consumes inactive pipeline itself, and returns the started pipeine.

pub async fn start_async(
    self,
    config: impl Into<Option<Config>>
) -> Result<ActivePipeline>
[src]

Start the pipeline asynchronously. It is analogous to Pipeline::start.

pub fn into_raw_parts(self) -> (*mut rs2_pipeline, *mut rs2_context)[src]

Unpack the pipeline into raw pointers.

It returns the raw pointer along with the context pointer that the pipeline depends on.

pub unsafe fn from_raw_parts(
    pipeline_ptr: *mut rs2_pipeline,
    context_ptr: *mut rs2_context
) -> Self
[src]

Construct an inactive pipeline from raw pointers.

It assumes the pipeline pointers is built atop from the context pointer.