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§

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.