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<T> or AsyncStream<T>.

Implementations on Foreign Types§

Source§

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

Implementors§

Auto implementors§

§

impl<T> NotResult for AsyncTask<T>