cloud_terrastodon_command 0.35.0

Command running helpers for the Cloud Terrastodon project
Documentation
1
2
3
4
5
6
7
8
9
10
11
use super::StateMutator;

#[derive(Debug)]
pub enum AppboundWorkFinishedMessage<T> {
    StateChange(Box<dyn StateMutator<T>>),
}
impl<T> AppboundWorkFinishedMessage<T> {
    pub fn update_state(mutator: impl StateMutator<T>) -> Self {
        AppboundWorkFinishedMessage::StateChange(Box::new(mutator))
    }
}