[][src]Struct enande::ProcessBuilder

pub struct ProcessBuilder<TItem, TError> { /* fields omitted */ }

Methods

impl<TItem, TError> ProcessBuilder<TItem, TError> where
    TError: Sized + Send + 'static,
    TItem: Sized + Send + 'static, 
[src]

pub fn new() -> Self[src]

pub fn add_stream<'a, TStream, TStreamItem>(
    &'a mut self,
    stream: TStream
) -> &mut Self where
    TStream: Stream<Item = TStreamItem> + Send + Unpin + 'static,
    TStreamItem: Into<TItem>, 
[src]

Adds another stream as an input source to this builder.

pub fn add_try<'a, TStream, TStreamItem>(
    &'a mut self,
    stream: TStream
) -> &mut Self where
    TStream: Stream<Item = TStreamItem> + Send + Unpin + 'static,
    TItem: TryFrom<TStreamItem, Error = TError>, 
[src]

Adds an input where the Item can be converted into our Item using TryFrom.

pub fn add_try_stream<'a, TStream, TStreamError>(
    &'a mut self,
    stream: TStream
) -> &mut Self where
    TStream: Stream<Item = Result<TItem, TStreamError>> + Send + Unpin + 'static,
    TStreamError: 'static,
    TError: From<TStreamError>, 
[src]

Adds an input that contains fails.

pub async fn run<TSink, TSinkError, TProcessor>(
    __arg0: Self,
    sink: TSink,
    processor: TProcessor
) -> Result<(), ()> where
    TProcessor: Processor<Item = TItem, Error = TError>,
    TSink: Sink<TProcessor::ResultItem, Error = TSinkError> + Unpin,
    TError: From<TSinkError> + Send + 'static, 
[src]

Auto Trait Implementations

impl<TItem, TError> Send for ProcessBuilder<TItem, TError>

impl<TItem, TError> !Sync for ProcessBuilder<TItem, TError>

impl<TItem, TError> Unpin for ProcessBuilder<TItem, TError>

impl<TItem, TError> !UnwindSafe for ProcessBuilder<TItem, TError>

impl<TItem, TError> !RefUnwindSafe for ProcessBuilder<TItem, TError>

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]