pub enum Message {
Answer {
id: u64,
answer: Answer,
},
Activated {
uri: String,
},
Closed {
tag: String,
reason: CloseReason,
},
}Expand description
One message on its way to the app: the answer to a call, and what the person did with a notification the app showed.
Variants§
Answer
Activated
The person chose the notification, or one of its buttons: the URI it was shown with.
Closed
The notification is gone, and why: the person dismissed it, it expired, or it was closed.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
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 Eq for Message
impl StructuralPartialEq for Message
Auto Trait Implementations§
impl Forget for Message
impl Freeze for Messagewhere
*const u8 is !null: Freeze,
PhantomData<Scheduled>: Freeze,
PhantomData<AlarmStateWire>: Freeze,
PhantomData<u8>: Freeze,
impl Move for Message
impl RefUnwindSafe for Message
impl Send for Messagewhere
RawVecInner: Send,
impl Sync for Messagewhere
RawVecInner: Sync,
impl Unpin for Message
impl UnsafeUnpin for Messagewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Scheduled>: UnsafeUnpin,
PhantomData<AlarmStateWire>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for Messagewhere
RawVecInner: UnwindSafe,
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