pub struct BufferUsageEventParamsBuilder { /* private fields */ }Expand description
Builder for BufferUsageEventParams.
Implementations§
Source§impl BufferUsageEventParamsBuilder
impl BufferUsageEventParamsBuilder
Sourcepub fn percent_full(&mut self, value: Option<JsFloat>) -> &mut Self
pub fn percent_full(&mut self, value: Option<JsFloat>) -> &mut Self
A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.
Sourcepub fn event_count(&mut self, value: Option<JsFloat>) -> &mut Self
pub fn event_count(&mut self, value: Option<JsFloat>) -> &mut Self
An approximate number of events in the trace log.
Sourcepub fn value(&mut self, value: Option<JsFloat>) -> &mut Self
pub fn value(&mut self, value: Option<JsFloat>) -> &mut Self
A number in range [0..1] that indicates the used size of event buffer as a fraction of its total size.
Sourcepub fn build(
&self,
) -> Result<BufferUsageEventParams, BufferUsageEventParamsBuilderError>
pub fn build( &self, ) -> Result<BufferUsageEventParams, BufferUsageEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for BufferUsageEventParamsBuilder
impl Clone for BufferUsageEventParamsBuilder
Source§fn clone(&self) -> BufferUsageEventParamsBuilder
fn clone(&self) -> BufferUsageEventParamsBuilder
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 BufferUsageEventParamsBuilder
impl RefUnwindSafe for BufferUsageEventParamsBuilder
impl Send for BufferUsageEventParamsBuilder
impl Sync for BufferUsageEventParamsBuilder
impl Unpin for BufferUsageEventParamsBuilder
impl UnsafeUnpin for BufferUsageEventParamsBuilder
impl UnwindSafe for BufferUsageEventParamsBuilder
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