pub struct ReportHeapSnapshotProgressEventParamsBuilder { /* private fields */ }Expand description
Builder for ReportHeapSnapshotProgressEventParams.
Implementations§
Source§impl ReportHeapSnapshotProgressEventParamsBuilder
impl ReportHeapSnapshotProgressEventParamsBuilder
pub fn done(&mut self, value: JsUInt) -> &mut Self
pub fn total(&mut self, value: JsUInt) -> &mut Self
pub fn finished(&mut self, value: Option<bool>) -> &mut Self
Sourcepub fn build(
&self,
) -> Result<ReportHeapSnapshotProgressEventParams, ReportHeapSnapshotProgressEventParamsBuilderError>
pub fn build( &self, ) -> Result<ReportHeapSnapshotProgressEventParams, ReportHeapSnapshotProgressEventParamsBuilderError>
Builds a new ReportHeapSnapshotProgressEventParams.
§Errors
If a required field has not been initialized.
Trait Implementations§
Source§impl Clone for ReportHeapSnapshotProgressEventParamsBuilder
impl Clone for ReportHeapSnapshotProgressEventParamsBuilder
Source§fn clone(&self) -> ReportHeapSnapshotProgressEventParamsBuilder
fn clone(&self) -> ReportHeapSnapshotProgressEventParamsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ReportHeapSnapshotProgressEventParamsBuilder
impl RefUnwindSafe for ReportHeapSnapshotProgressEventParamsBuilder
impl Send for ReportHeapSnapshotProgressEventParamsBuilder
impl Sync for ReportHeapSnapshotProgressEventParamsBuilder
impl Unpin for ReportHeapSnapshotProgressEventParamsBuilder
impl UnsafeUnpin for ReportHeapSnapshotProgressEventParamsBuilder
impl UnwindSafe for ReportHeapSnapshotProgressEventParamsBuilder
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