#[non_exhaustive]pub enum EndPolicy {
Immediate {},
Default {},
After {
at: u64,
},
}Expand description
When an ended activity leaves the screen. More may come: match with a _ arm.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Immediate
Remove the activity from the screen at once.
Default
Leave it to the platform.
After
Keep the ended activity on screen until a time. iOS keeps it for at most four hours; Android keeps its last
content where the device offers delayedEnd, and answers UNSUPPORTED_FEATURE elsewhere.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for EndPolicy
impl<'de> Deserialize<'de> for EndPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for EndPolicy
Auto Trait Implementations§
impl Forget for EndPolicy
impl Freeze for EndPolicy
impl Move for EndPolicy
impl RefUnwindSafe for EndPolicy
impl Send for EndPolicy
impl Sync for EndPolicy
impl Unpin for EndPolicy
impl UnsafeUnpin for EndPolicy
impl UnwindSafe for EndPolicy
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