soaprs-core 0.2.0

Core contracts for soaprs
Documentation
1
2
3
4
5
6
//! Future types used by object-safe asynchronous ports.

use std::{future::Future, pin::Pin};

/// A sendable future tied to the lifetime of the borrowed service.
pub type BoxFuture<'a, T> = Pin<Box<dyn Future<Output = T> + Send + 'a>>;