pub struct Align { /* private fields */ }Expand description
Processing Block and Frame Queue for aligning a stream to a certain StreamKind
Implementations§
Source§impl Align
impl Align
Sourcepub fn new(
align_to: Rs2StreamKind,
processing_queue_size: i32,
) -> Result<Self, ProcessingBlockConstructionError>
pub fn new( align_to: Rs2StreamKind, processing_queue_size: i32, ) -> Result<Self, ProcessingBlockConstructionError>
Create a new Align object
Sourcepub fn queue(&mut self, frames: CompositeFrame) -> Result<(), ProcessFrameError>
pub fn queue(&mut self, frames: CompositeFrame) -> Result<(), ProcessFrameError>
Own and process the composite frame and return the aligned frames.
Sourcepub fn wait(
&mut self,
timeout: Duration,
) -> Result<CompositeFrame, ProcessFrameError>
pub fn wait( &mut self, timeout: Duration, ) -> Result<CompositeFrame, ProcessFrameError>
Wait to receive the results of the processing block
Sourcepub fn poll(&mut self) -> Result<Poll<CompositeFrame>, ProcessFrameError>
pub fn poll(&mut self) -> Result<Poll<CompositeFrame>, ProcessFrameError>
Poll to receive the results of the processing block
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Align
impl RefUnwindSafe for Align
impl !Send for Align
impl !Sync for Align
impl Unpin for Align
impl UnwindSafe for Align
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more