pub enum Message<T: Debug> {
NewData(T),
StateChange(DataState),
}Expand description
The message-type to send from the updater to the main thread. There’s only two variants,
NewData which allows to send new data or StateChange which allows to signal readiness or error.
Variants§
NewData(T)
Adding or setting new data to the promise, depending on the implementation
StateChange(DataState)
Modify the state of the promise, including setting an error
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Message<T>where
T: Freeze,
impl<T> RefUnwindSafe for Message<T>where
T: RefUnwindSafe,
impl<T> Send for Message<T>where
T: Send,
impl<T> Sync for Message<T>where
T: Sync,
impl<T> Unpin for Message<T>where
T: Unpin,
impl<T> UnwindSafe for Message<T>where
T: 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