pub struct DataReceivedEventBuilder { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Implementations§
Source§impl DataReceivedEventBuilder
impl DataReceivedEventBuilder
Sourcepub fn request_id(&mut self, v: RequestId) -> &mut Self
pub fn request_id(&mut self, v: RequestId) -> &mut Self
Request identifier.
Sourcepub fn timestamp(&mut self, v: MonotonicTime) -> &mut Self
pub fn timestamp(&mut self, v: MonotonicTime) -> &mut Self
Timestamp.
Sourcepub fn data_length(&mut self, v: u32) -> &mut Self
pub fn data_length(&mut self, v: u32) -> &mut Self
Data chunk length.
Sourcepub fn encoded_data_length(&mut self, v: u32) -> &mut Self
pub fn encoded_data_length(&mut self, v: u32) -> &mut Self
Actual bytes received (might be less than dataLength for compressed encodings).
pub fn build(&mut self) -> Result<DataReceivedEvent, &'static str>
Trait Implementations§
Source§impl Clone for DataReceivedEventBuilder
impl Clone for DataReceivedEventBuilder
Source§fn clone(&self) -> DataReceivedEventBuilder
fn clone(&self) -> DataReceivedEventBuilder
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 moreSource§impl Debug for DataReceivedEventBuilder
impl Debug for DataReceivedEventBuilder
Auto Trait Implementations§
impl Freeze for DataReceivedEventBuilder
impl RefUnwindSafe for DataReceivedEventBuilder
impl Send for DataReceivedEventBuilder
impl Sync for DataReceivedEventBuilder
impl Unpin for DataReceivedEventBuilder
impl UnwindSafe for DataReceivedEventBuilder
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