[−][src]Struct enande::ProcessBuilder
Methods
impl<TItem, TError> ProcessBuilder<TItem, TError> where
TError: Sized + Send + 'static,
TItem: Sized + Send + 'static,
[src]
TError: Sized + Send + 'static,
TItem: Sized + Send + 'static,
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]
&'a mut self,
stream: TStream
) -> &mut Self where
TStream: Stream<Item = TStreamItem> + Send + Unpin + 'static,
TStreamItem: Into<TItem>,
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]
&'a mut self,
stream: TStream
) -> &mut Self where
TStream: Stream<Item = TStreamItem> + Send + Unpin + 'static,
TItem: TryFrom<TStreamItem, Error = TError>,
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]
&'a mut self,
stream: TStream
) -> &mut Self where
TStream: Stream<Item = Result<TItem, TStreamError>> + Send + Unpin + 'static,
TStreamError: 'static,
TError: From<TStreamError>,
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]
__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,
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]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,