pub trait Fork:
Sized
+ Send
+ 'static {
// Required methods
fn fork(
&mut self,
) -> impl Future<Output = Result<Self, ErrorOf<ForkErrorKind>>> + Send;
fn run<F, Fut>(self, fun: F) -> impl Future<Output = ()> + Send
where F: FnOnce(Self) -> Fut + Send + 'static,
Fut: Future + Send + 'static;
}Required Methods§
fn fork( &mut self, ) -> impl Future<Output = Result<Self, ErrorOf<ForkErrorKind>>> + Send
fn run<F, Fut>(self, fun: F) -> impl Future<Output = ()> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.