Skip to main content

SendFlow

Trait SendFlow 

Source
pub trait SendFlow:
    Flow<Run: Send + 'static>
    + Send
    + Sync
    + 'static { }
Expand description

A Flow that background scopes can run — what data and domain layers return as impl SendFlow<Item = T>.

An impl Flow<Item = T> return type hides whether its runs are Send; this alias keeps that fact visible without boxing.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<F> SendFlow for F
where F: Flow + Send + Sync + 'static, F::Run: Send + 'static,