pub enum EndReason {
Expired,
Dismissed,
Withdrawn,
Replaced,
Outside,
}Expand description
Why an activity ended.
Variants§
Expired
Its timeout ran out.
Dismissed
The user closed it.
Withdrawn
Its module withdrew it.
Replaced
A newer activity with the same key took its place.
Outside
The user clicked outside the island, without having opened it: less than a dismissal, more like its time running out early.
Trait Implementations§
impl Copy for EndReason
Source§impl<'de> Deserialize<'de> for EndReason
impl<'de> Deserialize<'de> for EndReason
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EndReason, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for EndReason
Source§impl Serialize for EndReason
impl Serialize for EndReason
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EndReason
Auto Trait Implementations§
impl Freeze for EndReason
impl RefUnwindSafe for EndReason
impl Send for EndReason
impl Sync for EndReason
impl Unpin for EndReason
impl UnsafeUnpin for EndReason
impl UnwindSafe for EndReason
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