Struct ether_dream_dac_emulator::stream::Output
[−]
[src]
pub struct Output { /* fields omitted */ }
A handle for receiving the Output produced by the processor.
This type may be used to yield "frames" of DacPoints emitted by the Processor.
Methods
impl Output
[src]
pub fn try_next_frame(&self) -> Result<Option<Frame>, StreamClosed>
[src]
Yields the next Frame if there is one pending.
Once the yielded Frame is dropped, it sends the buffer back to the DAC for reuse.
Returns None
if there are no pending frames.
pub fn next_frame(&self) -> Result<Frame, StreamClosed>
[src]
Yields the next Frame.
If there are no Frames queue in the inner buffer, this method will block until there is one.
Once the yielded Frame is dropped, it sends the buffer back to the DAC for reuse.
Returns None
if there are no pending frames.