pub struct MotionPresenceStore {
pub current_key: Option<String>,
pub exiting: Vec<ExitingChild>,
pub state: MotionPresenceState,
pub pending_enter: bool,
}Expand description
State tracked for MotionPresence via blinc_store
Fields§
§current_key: Option<String>Current child key (if any)
exiting: Vec<ExitingChild>Children that are currently exiting
state: MotionPresenceStateCurrent state of the presence state machine
pending_enter: boolWhether we’re waiting for enter animation to start
Implementations§
Source§impl MotionPresenceStore
impl MotionPresenceStore
Sourcepub fn is_key_exiting(&self, key: &str) -> bool
pub fn is_key_exiting(&self, key: &str) -> bool
Check if a specific key is currently exiting
Sourcepub fn remove_exiting(&mut self, key: &str)
pub fn remove_exiting(&mut self, key: &str)
Remove a key from the exiting list
Sourcepub fn add_exiting(&mut self, key: String, motion_key: String)
pub fn add_exiting(&mut self, key: String, motion_key: String)
Add a child to the exiting list
Sourcepub fn has_exiting(&self) -> bool
pub fn has_exiting(&self) -> bool
Check if we have any children exiting
Trait Implementations§
Source§impl Clone for MotionPresenceStore
impl Clone for MotionPresenceStore
Source§fn clone(&self) -> MotionPresenceStore
fn clone(&self) -> MotionPresenceStore
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 Default for MotionPresenceStore
impl Default for MotionPresenceStore
Source§fn default() -> MotionPresenceStore
fn default() -> MotionPresenceStore
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MotionPresenceStore
impl RefUnwindSafe for MotionPresenceStore
impl Send for MotionPresenceStore
impl Sync for MotionPresenceStore
impl Unpin for MotionPresenceStore
impl UnsafeUnpin for MotionPresenceStore
impl UnwindSafe for MotionPresenceStore
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