1 2 3 4 5 6
use crate::StatusFuture; pub type Next = Box<dyn FnOnce() -> StatusFuture + Sync + Send>; pub fn last() -> StatusFuture { Box::pin(async move { Ok(()) }) }
1 2 3 4 5 6
use crate::StatusFuture; pub type Next = Box<dyn FnOnce() -> StatusFuture + Sync + Send>; pub fn last() -> StatusFuture { Box::pin(async move { Ok(()) }) }