pub enum UnderrunPolicy {
RepeatLast,
Blank,
Park {
x: f32,
y: f32,
},
Stop,
}Expand description
Policy for what to do when the producer can’t keep up with the stream.
Variants§
RepeatLast
Repeat the last chunk of points.
Blank
Output blanked points (laser off).
Park
Park the beam at a specific position with laser off.
Stop
Stop the stream entirely on underrun.
Trait Implementations§
Source§impl Clone for UnderrunPolicy
impl Clone for UnderrunPolicy
Source§fn clone(&self) -> UnderrunPolicy
fn clone(&self) -> UnderrunPolicy
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 moreSource§impl Debug for UnderrunPolicy
impl Debug for UnderrunPolicy
Source§impl Default for UnderrunPolicy
impl Default for UnderrunPolicy
Source§fn default() -> UnderrunPolicy
fn default() -> UnderrunPolicy
Returns the “default value” for a type. Read more
Source§impl PartialEq for UnderrunPolicy
impl PartialEq for UnderrunPolicy
impl StructuralPartialEq for UnderrunPolicy
Auto Trait Implementations§
impl Freeze for UnderrunPolicy
impl RefUnwindSafe for UnderrunPolicy
impl Send for UnderrunPolicy
impl Sync for UnderrunPolicy
impl Unpin for UnderrunPolicy
impl UnwindSafe for UnderrunPolicy
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