pub trait Composite {
type Item;
// Provided methods
fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
where Self: Sized,
U: Composite,
F: FnOnce(Self::Item) -> U { ... }
fn map<B, F>(self, f: F) -> Map<Self, B, F>
where Self: Sized,
F: FnOnce(Self::Item) -> B { ... }
fn zip<U>(self, other: U) -> Zip<Self, U>
where Self: Sized,
U: Composite { ... }
fn ap<U, B>(self, other: U) -> Ap<Self, U, B>
where Self: Sized,
Self::Item: FnOnce(U::Item) -> B,
U: Composite { ... }
fn into_boxed(self) -> CompositeBox<Self::Item>
where Self: Sized + Clone + 'static { ... }
fn run<D>(self, disposable: D) -> Run<Self, D>
where Self: Sized,
D: Disposable + Clone + 'static { ... }
fn run_(self) -> Run_<Self>
where Self: Sized { ... }
}Expand description
The computation synchronized with the composite queue.
Required Associated Types§
Provided Methods§
Sourcefn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
fn and_then<U, F>(self, f: F) -> AndThen<Self, U, F>
Bind the current computation with its continuation within the resulting computation.
Sourcefn map<B, F>(self, f: F) -> Map<Self, B, F>
fn map<B, F>(self, f: F) -> Map<Self, B, F>
Map the current computation using the specified transform.
Sourcefn zip<U>(self, other: U) -> Zip<Self, U>
fn zip<U>(self, other: U) -> Zip<Self, U>
Zip the current computation with another one within the resulting computation.
Sourcefn into_boxed(self) -> CompositeBox<Self::Item>
fn into_boxed(self) -> CompositeBox<Self::Item>
Convert into a boxed value.