moq_lite/model/produce.rs
1/// A named tuple of a producer and consumer for convenience.
2///
3/// The producer and consumer may each be cloned as many times as you want.
4/// However when the number of references reaches zero, the other will receive a signal to close.
5/// A new consumer may be created at any time by calling [T::consume].
6#[derive(Clone)]
7pub struct Produce<P, C> {
8 pub producer: P,
9 pub consumer: C,
10}