Trait Generate

Source
pub trait Generate<C> {
    type Generator: Iterator<Item = Self> + Send;

    // Required method
    fn generator(config: &C, client_id: ClientId) -> Self::Generator;
}
Expand description

message type that provides generators

Required Associated Types§

Source

type Generator: Iterator<Item = Self> + Send

the message generator, should be a infinite iterator

Required Methods§

Source

fn generator(config: &C, client_id: ClientId) -> Self::Generator

create a new infinite message generator

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§