Struct realsense_rust::pipeline::ActivePipeline[][src]

pub struct ActivePipeline { /* fields omitted */ }
Expand description

Type representing an “active” pipeline which is configured and can acquire frames.

Implementations

Gets the active profile of pipeline.

Stop the pipeline.

This method consumes the pipeline instance and returns pipeline markered inactive.

Waits to get a new composite frame, blocking the calling thread.

Returns a composite frame from the pipeline, blocking the calling thread until a frame is available. This method can return an error if an internal exception occurs or if the thread waits more than the duration provided by timeout_ms (in milliseconds).

Arguments

Errors

Returns FrameWaitError::DidErrorDuringFrameWait if an internal error occurs while waiting for next frame(s).

Returns FrameWaitError::DidTimeoutBeforeFrameArrival if the thread waits more than timeout_ms (in milliseconds) without returning a frame.

Poll if next frame is immediately available.

Unlike ActivePipeline::wait, the method does not block and returns None immediately if the next frame is not available. Returns Poll::Pending if no frame is yet available, and returns Poll::Ready if the next composite frame is found.

Errors

Returns FrameWaitError::DidErrorDuringFramePoll if an internal error occurs while polling for the next frame.

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.