pub struct DataReceivedEvent { /* private fields */ }Available on crate features
Network and Debugger and Runtime and Security only.Expand description
Fired when data chunk was received over the network.
Implementations§
Source§impl DataReceivedEvent
impl DataReceivedEvent
pub fn builder() -> DataReceivedEventBuilder
Sourcepub fn request_id(&self) -> &RequestId
pub fn request_id(&self) -> &RequestId
Request identifier.
Sourcepub fn timestamp(&self) -> &MonotonicTime
pub fn timestamp(&self) -> &MonotonicTime
Timestamp.
Sourcepub fn data_length(&self) -> u32
pub fn data_length(&self) -> u32
Data chunk length.
Sourcepub fn encoded_data_length(&self) -> u32
pub fn encoded_data_length(&self) -> u32
Actual bytes received (might be less than dataLength for compressed encodings).
Trait Implementations§
Source§impl Clone for DataReceivedEvent
impl Clone for DataReceivedEvent
Source§fn clone(&self) -> DataReceivedEvent
fn clone(&self) -> DataReceivedEvent
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 DataReceivedEvent
impl Debug for DataReceivedEvent
Source§impl<'de> Deserialize<'de> for DataReceivedEvent
impl<'de> Deserialize<'de> for DataReceivedEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DataReceivedEvent
impl RefUnwindSafe for DataReceivedEvent
impl Send for DataReceivedEvent
impl Sync for DataReceivedEvent
impl Unpin for DataReceivedEvent
impl UnwindSafe for DataReceivedEvent
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