pub struct DataReceivedEventParamsBuilder { /* private fields */ }Expand description
Builder for DataReceivedEventParams.
Implementations§
Source§impl DataReceivedEventParamsBuilder
impl DataReceivedEventParamsBuilder
Sourcepub fn request_id(&mut self, value: RequestId) -> &mut Self
pub fn request_id(&mut self, value: RequestId) -> &mut Self
Request identifier.
Sourcepub fn timestamp(&mut self, value: MonotonicTime) -> &mut Self
pub fn timestamp(&mut self, value: MonotonicTime) -> &mut Self
Timestamp.
Sourcepub fn data_length(&mut self, value: JsUInt) -> &mut Self
pub fn data_length(&mut self, value: JsUInt) -> &mut Self
Data chunk length.
Sourcepub fn encoded_data_length(&mut self, value: JsUInt) -> &mut Self
pub fn encoded_data_length(&mut self, value: JsUInt) -> &mut Self
Actual bytes received (might be less than dataLength for compressed encodings).
Sourcepub fn build(
&self,
) -> Result<DataReceivedEventParams, DataReceivedEventParamsBuilderError>
pub fn build( &self, ) -> Result<DataReceivedEventParams, DataReceivedEventParamsBuilderError>
Trait Implementations§
Source§impl Clone for DataReceivedEventParamsBuilder
impl Clone for DataReceivedEventParamsBuilder
Source§fn clone(&self) -> DataReceivedEventParamsBuilder
fn clone(&self) -> DataReceivedEventParamsBuilder
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 DataReceivedEventParamsBuilder
impl RefUnwindSafe for DataReceivedEventParamsBuilder
impl Send for DataReceivedEventParamsBuilder
impl Sync for DataReceivedEventParamsBuilder
impl Unpin for DataReceivedEventParamsBuilder
impl UnsafeUnpin for DataReceivedEventParamsBuilder
impl UnwindSafe for DataReceivedEventParamsBuilder
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