Pauseable

Trait Pauseable 

Source
pub trait Pauseable {
    // Required methods
    fn is_active(&self) -> bool;
    fn set_active(&self, val: bool);
    fn pause(&self);
    fn resume(&self);
}
Expand description

The Pauseable should be implemented by objects intended to be temporarily disabled from the broad phase update traversal.

Required Methods§

Source

fn is_active(&self) -> bool

Determines if the object is updating or not.

Source

fn set_active(&self, val: bool)

Set active state

Source

fn pause(&self)

Sets active to false.

Source

fn resume(&self)

Sets active to true.

Implementors§