pub struct DataReceivedEvent {
pub request_id: RequestId,
pub timestamp: MonotonicTime,
pub data_length: i64,
pub encoded_data_length: i64,
pub data: Option<String>,
}Expand description
Fired when data chunk was received over the network.
Payload of the Network.dataReceived event.
Fields§
§request_id: RequestIdRequest identifier.
timestamp: MonotonicTimeTimestamp.
data_length: i64Data chunk length.
encoded_data_length: i64Actual bytes received (might be less than dataLength for compressed encodings).
data: Option<String>Data that was received. (Encoded as a base64 string when passed over JSON)
Experimental: may change without notice.
Trait Implementations§
Source§impl Clone for DataReceivedEvent
impl Clone for DataReceivedEvent
Source§impl Debug for DataReceivedEvent
impl Debug for DataReceivedEvent
Source§impl Default for DataReceivedEvent
impl Default 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
Source§impl Event for DataReceivedEvent
impl Event for DataReceivedEvent
Source§impl PartialEq for DataReceivedEvent
impl PartialEq for DataReceivedEvent
Source§impl Serialize for DataReceivedEvent
impl Serialize for DataReceivedEvent
impl StructuralPartialEq for DataReceivedEvent
Auto Trait Implementations§
impl Forget for DataReceivedEvent
impl Freeze for DataReceivedEvent
impl RefUnwindSafe for DataReceivedEvent
impl Send for DataReceivedEvent
impl Sync for DataReceivedEvent
impl Unpin for DataReceivedEvent
impl UnsafeUnpin 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