Module event_producers

Source
Expand description

When generating a watcher event, one needs “a list of names” that are then converted into buffers sent to the watchers. In a sense, an iterator over a list of strings would work, but in order to avoid copying the data around, this namespace provides a more specialized version of this abstraction.

Structs§

SingleBufferEventProducer
An event producer for an event that has one buffer of data.
SingleNameEventProducer
An event producer for an event containing only one name. It is slightly optimized, but otherwise functionally equivalent to the StaticVecEventProducer with an array of one element.
StaticVecEventProducer
An EventProducer that uses a Vec<String> with names of the entires to be put into the watcher event.

Traits§

EventProducer
Watcher event producer, that generates buffers filled with watcher events. Watchers use this API to obtain buffers that are then sent to the actual watchers. Every producer may generate multiple events, but they all need to be of the same type, as returned by Self::event() and Self::mask() methods.