Trait NotResult

Source
pub auto trait NotResult { }
Expand description

Marker trait to prevent Result types in AsyncTask/AsyncStream

This trait is automatically implemented for all types except Result types. It uses negative impls to explicitly exclude Result<T, E> from being used in AsyncTask or AsyncStream.

Implementations on Foreign Types§

Source§

impl<T, E> !NotResult for Result<T, E>

Implementors§

Source§

impl<T, E> NotResult for AsyncResult<T, E>

Source§

impl<T, E> NotResult for AsyncResultChunk<T, E>

Auto implementors§

§

impl<T> !NotResult for EmitterBuilder<T>

§

impl<T> NotResult for AsyncStream<T>

§

impl<T> NotResult for AsyncTask<T>