mosaik 0.3.17

A Rust runtime for building self-organizing, leaderless distributed systems.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use core::pin::Pin;

/// A boxed future that is `Send` and `'static`.
pub type BoxPinFut<T: core::fmt::Debug> =
	Pin<Box<dyn Future<Output = T> + Send + 'static>>;

pub trait InternalFutureExt: Future {
	fn pin(self) -> BoxPinFut<Self::Output>
	where
		Self: Sized + Send + 'static,
	{
		Box::pin(self)
	}
}

impl<F: Future> InternalFutureExt for F {}