pub struct SourceSynchronousProxy { /* private fields */ }
Implementations§
source§impl SourceSynchronousProxy
impl SourceSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(&self, deadline: Time) -> Result<SourceEvent, Error>
pub fn wait_for_event(&self, deadline: Time) -> Result<SourceEvent, Error>
Waits until an event arrives and returns it. It is safe for other threads to make concurrent requests while waiting for an event.
sourcepub fn retire_buffer(&self, buffer: u64) -> Result<(), Error>
pub fn retire_buffer(&self, buffer: u64) -> Result<(), Error>
Notifies the Source
that the retriever is done reading from the buffer. If the Source
wishes it should zero the buffer’s contents and recycle it for future records. Buffers must
be re-sent via OnBufferInit
after they’re zeroed.