Type Definition realsense_rust::pipeline::ActivePipeline [−][src]
type ActivePipeline = Pipeline<Active>;
Implementations
impl ActivePipeline
[src]
pub fn profile(&self) -> &PipelineProfile
[src]
Gets the active profile of pipeline.
pub fn wait(
&mut self,
timeout: impl Into<Option<Duration>>
) -> Result<Option<CompositeFrame>>
[src]
&mut self,
timeout: impl Into<Option<Duration>>
) -> Result<Option<CompositeFrame>>
Block until the next frame is available.
When the timeout is set, it returns Ok(Some(frame))
if the frame is available,
or returns Ok(None)
when timeout occurs.
If the timeout is None
, it waits indefinitely before the next frame.
pub fn try_wait(&mut self) -> Result<Option<CompositeFrame>>
[src]
Poll if next frame is immediately available.
Unlike Pipeline::start, the method does not block and returns None if next from is not available.
pub async fn wait_async(
&mut self,
timeout: impl Into<Option<Duration>>
) -> Result<Option<CompositeFrame>>
[src]
&mut self,
timeout: impl Into<Option<Duration>>
) -> Result<Option<CompositeFrame>>
Wait for the next frame asynchronously.
The method is analogous to Pipeline::wait.
When the timeout is set, it returns Ok(Some(frame))
if the frame is available,
or returns Ok(None)
when timeout occurs.
If the timeout is None
, it waits indefinitely before the next frame.
pub fn stop(self) -> Result<InactivePipeline>
[src]
Stop the pipeline.
This method consumes the pipeline instance and returns pipeline markered inactive.
pub fn into_raw_parts(
self
) -> (*mut rs2_pipeline, *mut rs2_context, *mut rs2_pipeline_profile, Option<*mut rs2_config>)
[src]
self
) -> (*mut rs2_pipeline, *mut rs2_context, *mut rs2_pipeline_profile, Option<*mut rs2_config>)
Unpack the pipeline into raw pointers.
After calling this method, you have to take care of their lifetime manually.
pub unsafe fn from_raw_parts(
pipeline_ptr: *mut rs2_pipeline,
context_ptr: *mut rs2_context,
profile_ptr: *mut rs2_pipeline_profile,
config_ptr: Option<*mut rs2_config>
) -> Self
[src]
pipeline_ptr: *mut rs2_pipeline,
context_ptr: *mut rs2_context,
profile_ptr: *mut rs2_pipeline_profile,
config_ptr: Option<*mut rs2_config>
) -> Self
Construct an active pipeline from raw pointers.
It assumes the pipeline pointer is built from the context pointer, and profile pointer is the active profile of the pipeline.