nitinol_process/
channel.rs

1mod event;
2mod command;
3mod forget;
4
5pub use self::event::*;
6pub use self::command::*;
7pub use self::forget::*;
8
9use async_trait::async_trait;
10
11use crate::{Process, Context};
12use crate::errors::ChannelDropped;
13
14#[async_trait]
15pub trait ProcessApplier<T: Process>: 'static + Sync + Send {
16    async fn apply(self: Box<Self>, entity: &mut T, ctx: &mut Context) -> Result<(), ChannelDropped>;
17}