pub struct MotionTriggerEvent {
pub scene: &'static str,
pub trigger: MotionKeyTrigger,
pub progress: f32,
pub cross: bool,
pub positive: bool,
pub negative: bool,
}Fields§
§scene: &'static str§trigger: MotionKeyTrigger§progress: f32§cross: bool§positive: bool§negative: boolImplementations§
Source§impl MotionTriggerEvent
impl MotionTriggerEvent
Sourcepub fn custom_callbacks(
self,
) -> impl Iterator<Item = (&'static str, MotionCustomValue)>
pub fn custom_callbacks( self, ) -> impl Iterator<Item = (&'static str, MotionCustomValue)>
Custom attribute and method payloads for the directions that fired.
Trait Implementations§
Source§impl Clone for MotionTriggerEvent
impl Clone for MotionTriggerEvent
impl Copy for MotionTriggerEvent
Auto Trait Implementations§
impl Forget for MotionTriggerEvent
impl Freeze for MotionTriggerEvent
impl Move for MotionTriggerEvent
impl RefUnwindSafe for MotionTriggerEvent
impl Send for MotionTriggerEvent
impl Sync for MotionTriggerEvent
impl Unpin for MotionTriggerEvent
impl UnsafeUnpin for MotionTriggerEvent
impl UnwindSafe for MotionTriggerEvent
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