pub struct UserEvent {
pub name: String,
pub direction: Direction,
pub function: Box<dyn Fn(&Sample) -> f64 + Send + Sync>,
}Expand description
A user event: function(sample) crossing zero in direction during free flight. It is
recorded and the flight continues.
Fields§
§name: StringA name for reports.
direction: DirectionThe crossing direction.
function: Box<dyn Fn(&Sample) -> f64 + Send + Sync>The event function.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for UserEvent
impl !UnwindSafe for UserEvent
impl Freeze for UserEvent
impl Send for UserEvent
impl Sync for UserEvent
impl Unpin for UserEvent
impl UnsafeUnpin for UserEvent
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