cdp_driver/methods/io.rs
1// @generated by `just generate-methods` from protocol/*.json.
2// Do not edit by hand; edit xtask/ and regenerate.
3
4//! Input/Output operations for streams produced by DevTools.
5//!
6//! Method names for the `IO` domain, for use with
7//! [`CdpClient::call`](crate::CdpClient::call).
8
9/// Close the stream, discard any temporary backing storage.
10///
11/// Parameters:
12/// - `handle`: StreamHandle
13pub const CLOSE: &str = "IO.close";
14
15/// Read a chunk of the stream
16///
17/// Parameters:
18/// - `handle`: StreamHandle
19/// - `offset`: integer (optional)
20/// - `size`: integer (optional)
21///
22/// Returns: `base64Encoded`, `data`, `eof`
23pub const READ: &str = "IO.read";
24
25/// Return UUID of Blob object specified by a remote object id.
26///
27/// Deprecated in the protocol.
28///
29/// Parameters:
30/// - `objectId`: Runtime.RemoteObjectId
31///
32/// Returns: `uuid`
33pub const RESOLVE_BLOB: &str = "IO.resolveBlob";