#[non_exhaustive]pub struct AttachInput {
pub address: String,
pub token: String,
pub steps: Vec<Step>,
pub frames: u32,
pub screenshot: Option<String>,
pub log_since: u64,
pub perf_since: Option<u64>,
pub perf_follow: Option<String>,
pub follow_for: Option<u32>,
pub perf_snapshot: bool,
}Expand description
What attach reaches and plays.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.address: StringThe build’s address, host:port (127.0.0.1:7357).
token: StringThe token the build logged when it started listening.
steps: Vec<Step>The steps to play, in order: waits in seconds, played as the build’s frames at 60 a second, rounded up; no crank.
frames: u32Frames to let pass after the steps, with no input.
screenshot: Option<String>Where to write the window’s picture, a PNG file (from the working folder), if wanted.
log_since: u64The first log line to answer, by its number: 0 for every line kept,
the last answer’s log_next for the lines since.
perf_since: Option<u64>The first frame’s record to answer, by its number, if wanted: 0
for every record kept, the last answer’s perf_next for the
records since. With perf_follow, where the following starts.
perf_follow: Option<String>A file to follow the build’s frames into (from the working folder):
each new frame’s record written as a line as the build runs, for
follow_for seconds or until the build quits.
follow_for: Option<u32>How many seconds to follow, 1 to 3,600: 10 if not said.
perf_snapshot: boolTake a heap snapshot with the records: with perf_since, one now;
with perf_follow, one as the following starts and one as it ends,
and the diff between them.
Implementations§
Source§impl AttachInput
impl AttachInput
Trait Implementations§
Source§impl Clone for AttachInput
impl Clone for AttachInput
Source§fn clone(&self) -> AttachInput
fn clone(&self) -> AttachInput
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AttachInput
impl Debug for AttachInput
Source§impl Default for AttachInput
impl Default for AttachInput
Source§fn default() -> AttachInput
fn default() -> AttachInput
Source§impl<'de> Deserialize<'de> for AttachInputwhere
AttachInput: Default,
impl<'de> Deserialize<'de> for AttachInputwhere
AttachInput: Default,
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>,
Source§impl JsonSchema for AttachInput
impl JsonSchema for AttachInput
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read more