pub struct SharedFrameAdapter { /* private fields */ }Expand description
Thread-safe handle for updating frames from another thread.
Implementations§
Sourcepub fn update(&self, frame: Frame)
pub fn update(&self, frame: Frame)
Sets the pending frame. Takes effect when the current frame ends.
Sourcepub fn next_chunk(&self, req: &ChunkRequest) -> Vec<LaserPoint>
pub fn next_chunk(&self, req: &ChunkRequest) -> Vec<LaserPoint>
Produces exactly req.n_points points.
Trait Implementations§
Source§fn clone(&self) -> SharedFrameAdapter
fn clone(&self) -> SharedFrameAdapter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
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