pub struct ProgressRendererSynchronousProxy { /* private fields */ }
Implementations§
source§impl ProgressRendererSynchronousProxy
impl ProgressRendererSynchronousProxy
pub fn new(channel: Channel) -> Self
pub fn into_channel(self) -> Channel
sourcepub fn wait_for_event(
&self,
deadline: Time
) -> Result<ProgressRendererEvent, Error>
pub fn wait_for_event( &self, deadline: Time ) -> Result<ProgressRendererEvent, 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 render(
&self,
status: Status,
percent_complete: f32,
___deadline: Time
) -> Result<(), Error>
pub fn render( &self, status: Status, percent_complete: f32, ___deadline: Time ) -> Result<(), Error>
Called to send progress updates to the renderer.
The return value is used for flow control, and implementers should acknowledge receipt of each message in order to continue receiving future messages.
sourcepub fn render2(
&self,
payload: ProgressRendererRender2Request,
___deadline: Time
) -> Result<(), Error>
pub fn render2( &self, payload: ProgressRendererRender2Request, ___deadline: Time ) -> Result<(), Error>
Called to send progress updates to the renderer.
This call optionally contains timing or speed information for the progress bar to move slowly to percent_complete
The return value is used for flow control, and implementers should acknowledge receipt of each message in order to continue receiving future messages.