#[non_exhaustive]pub enum BackgroundInitiator {
User,
Timeout,
Unknown(String),
}Expand description
Who durably backgrounded a task. Open — runtime vocabulary.
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.
User
The user backgrounded the task.
Timeout
The foreground-wait timeout backgrounded it.
Unknown(String)
A value from a newer host, kept verbatim so an older client decodes the rest of the message. Never construct it with a known word.
Implementations§
Trait Implementations§
Source§impl Clone for BackgroundInitiator
impl Clone for BackgroundInitiator
Source§impl Debug for BackgroundInitiator
impl Debug for BackgroundInitiator
Source§impl<'de> Deserialize<'de> for BackgroundInitiator
impl<'de> Deserialize<'de> for BackgroundInitiator
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for BackgroundInitiator
Source§impl PartialEq for BackgroundInitiator
impl PartialEq for BackgroundInitiator
Source§impl Serialize for BackgroundInitiator
impl Serialize for BackgroundInitiator
impl StructuralPartialEq for BackgroundInitiator
Auto Trait Implementations§
impl Freeze for BackgroundInitiator
impl RefUnwindSafe for BackgroundInitiator
impl Send for BackgroundInitiator
impl Sync for BackgroundInitiator
impl Unpin for BackgroundInitiator
impl UnsafeUnpin for BackgroundInitiator
impl UnwindSafe for BackgroundInitiator
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