Crate combine_latest

Source

Functions§

combine_latest
Combines two streams into a new stream that always contains the latest items from both streams as a tuple. This stream won’t yield a tuple until both input streams have yielded at least one item each.
combine_latest_opt
Combines two streams into a new stream, yielding tuples of (Option<T1>, Option<T2>). The stream starts yielding tuples as soon as one of the input streams yields an item, and the one that has not yet yielded has a corresponding None in its field of the tuple.
combine_latest_optionalDeprecated
map_latest
Combines two streams into a new stream and apply the given function to each item. The function takes references as arguments, so unlike combine_latest the types T1 and T2 don’t have to implement Clone. The returned stream won’t yield until both streams have yielded at least one item each.
map_latest_opt
Combines two streams into a new stream and apply the given function to each item. The function takes references as arguments, so unlike combine_latest the types T1 and T2 don’t have to implement Clone. The returned stream will yield as soon as one input stream yields.