Skip to main content

StreamCreator

Trait StreamCreator 

Source
pub trait StreamCreator:
    Fn() -> Result<Stream, Box<dyn Error>>
    + Send
    + Sync
    + 'static { }

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<T: Fn() -> Result<Stream, Box<dyn Error>> + Send + Sync + 'static> StreamCreator for T