Enum ActivityStatus
#[repr(i32)]pub enum ActivityStatus {
Active = 0,
Inactive = 1,
Activating = 2,
Deactivating = 3,
}Expand description
Legacy version of enum “kanzi.ActivityConcept.Status”. Defines possible states of an Activity. Activity Host nodes can activate and deactivate their child Activities. This enumeration defines the possible states of an Activity during the the process of activation and deactivation. You can use this functionality to react to changes in Activity status in your application code and in Kanzi Studio. See: Activity, StatusProperty
Variants§
Active = 0
The Activity is active. In an Exclusive Activity Host only one child Activity can be in the Active state at a time. In a Parallel Activity Host more than one Activity can be in the Active state at the same time, therefore any Activity can be in any state.
Inactive = 1
The Activity is inactive. Inactive Activities do not show their content.
Activating = 2
The Activity is transitioning into the active state. In an Exclusive Activity Host while one Activity is in Activating state, another Activity can be in the Deactivating state at the same time. In a Parallel Activity Host more than one Activity can be in the Active state at the same time, therefore any Activity can be in any state.
Deactivating = 3
The Activity is transitioning into the inactive state. In an Exclusive Activity Host while one Activity is in Deactivating state, another Activity can at the same time be in the Activating state. In a Parallel Activity Host more than one Activity can be in the Active state at the same time, therefore any Activity can be in any state.
Implementations§
§impl ActivityStatus
impl ActivityStatus
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> ActivityStatus
Trait Implementations§
§impl Clone for ActivityStatus
impl Clone for ActivityStatus
§fn clone(&self) -> ActivityStatus
fn clone(&self) -> ActivityStatus
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for ActivityStatus
impl Debug for ActivityStatus
§impl Display for ActivityStatus
impl Display for ActivityStatus
§impl PartialEq for ActivityStatus
impl PartialEq for ActivityStatus
§impl VariantConstraint for ActivityStatus
impl VariantConstraint for ActivityStatus
§type DataArg<'a> = ActivityStatus
type DataArg<'a> = ActivityStatus
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = ActivityStatus
type RetArg = ActivityStatus
§fn as_arg(&self) -> <ActivityStatus as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <ActivityStatus as VariantConstraint>::DataArg<'_>
impl Copy for ActivityStatus
impl Eq for ActivityStatus
impl PropertyTypeConstraint for ActivityStatus
impl StructuralPartialEq for ActivityStatus
Auto Trait Implementations§
impl Freeze for ActivityStatus
impl RefUnwindSafe for ActivityStatus
impl Send for ActivityStatus
impl Sync for ActivityStatus
impl Unpin for ActivityStatus
impl UnwindSafe for ActivityStatus
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)