pub enum ProgressRendererRequest {
Render {
status: Status,
percent_complete: f32,
responder: ProgressRendererRenderResponder,
},
Render2 {
payload: ProgressRendererRender2Request,
responder: ProgressRendererRender2Responder,
},
}
Expand description
Protocol to receive progress updates to display a carnelian based progress bar UI.
Variants§
Render
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.
Render2
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.
Implementations§
source§impl ProgressRendererRequest
impl ProgressRendererRequest
pub fn into_render( self, ) -> Option<(Status, f32, ProgressRendererRenderResponder)>
pub fn into_render2( self, ) -> Option<(ProgressRendererRender2Request, ProgressRendererRender2Responder)>
sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Name of the method defined in FIDL
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ProgressRendererRequest
impl !RefUnwindSafe for ProgressRendererRequest
impl Send for ProgressRendererRequest
impl Sync for ProgressRendererRequest
impl Unpin for ProgressRendererRequest
impl !UnwindSafe for ProgressRendererRequest
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more