Trait InfiniteSource

Source
pub unsafe trait InfiniteSource: DataSource { }
Expand description

A trait which marks a source as infinite, preventing “read-to-end” operations from completing.

§Safety

The source must be truly infinite; it must always produce data. An example in the standard library is std::io::Repeat.

Implementations on Foreign Types§

Source§

impl InfiniteSource for Repeat

Implementors§