create_fake_view

Function create_fake_view 

Source
pub fn create_fake_view(
    event_stream: impl Stream<Item = Vec<EntryIteratorItem>>,
) -> (ViewProxy, impl FusedFuture<Output = ()>)
Expand description

Create a ViewProxy whose server end will respond to the first OpenEntryIterator request it receives by returning an entry iterator backed by the given event stream. The returned future drives the entry iterator implementation.