Enum KeepAlivePolicy
#[repr(i32)]pub enum KeepAlivePolicy {
DetachAndDestroy = 0,
HideAndDisable = 1,
}Expand description
Defines the policy for an inactive Activity.
Variants§
DetachAndDestroy = 0
Detach an inactive Activity node from the node tree and release its reference.
HideAndDisable = 1
Hide and disable an inactive Activity node.
Implementations§
§impl KeepAlivePolicy
impl KeepAlivePolicy
pub fn as_str(self) -> &'static str
pub fn convert(num: i32) -> KeepAlivePolicy
Trait Implementations§
§impl Clone for KeepAlivePolicy
impl Clone for KeepAlivePolicy
§fn clone(&self) -> KeepAlivePolicy
fn clone(&self) -> KeepAlivePolicy
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 more§impl Debug for KeepAlivePolicy
impl Debug for KeepAlivePolicy
§impl Display for KeepAlivePolicy
impl Display for KeepAlivePolicy
§impl PartialEq for KeepAlivePolicy
impl PartialEq for KeepAlivePolicy
§impl VariantConstraint for KeepAlivePolicy
impl VariantConstraint for KeepAlivePolicy
§type DataArg<'a> = KeepAlivePolicy
type DataArg<'a> = KeepAlivePolicy
Specifies the type of an argument that provides a value to
Variant.
Generally, this type matches Self, except for KanziString, Resource, and ResourceId. Read more§type RetArg = KeepAlivePolicy
type RetArg = KeepAlivePolicy
§fn as_arg(&self) -> <KeepAlivePolicy as VariantConstraint>::DataArg<'_>
fn as_arg(&self) -> <KeepAlivePolicy as VariantConstraint>::DataArg<'_>
impl Copy for KeepAlivePolicy
impl Eq for KeepAlivePolicy
impl PropertyTypeConstraint for KeepAlivePolicy
impl StructuralPartialEq for KeepAlivePolicy
Auto Trait Implementations§
impl Freeze for KeepAlivePolicy
impl RefUnwindSafe for KeepAlivePolicy
impl Send for KeepAlivePolicy
impl Sync for KeepAlivePolicy
impl Unpin for KeepAlivePolicy
impl UnwindSafe for KeepAlivePolicy
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