Skip to main content

AttachOutput

Struct AttachOutput 

Source
#[non_exhaustive]
pub struct AttachOutput {
Show 18 fields pub link: u32, pub game: String, pub frames: u32, pub phase: String, pub top_screen: String, pub screens: Vec<String>, pub suspended: bool, pub focused: bool, pub quit: bool, pub frame: String, pub screenshot: Option<AttachScreenshot>, pub log: Vec<AttachLogEntry>, pub log_next: u64, pub perf: Vec<FrameRecord>, pub perf_next: Option<u64>, pub perf_summary: Option<PerfSummary>, pub perf_snapshot: Option<HeapSnapshot>, pub follow: Option<AttachFollow>,
}
Expand description

What attach saw.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§link: u32

The link’s version both ends speak.

§game: String

The game: its window’s title.

§frames: u32

The frames the build has run since it started.

§phase: String

Where the game is: loading (its card shows), running or failed (its load failed; the errors show).

§top_screen: String

The top screen’s name; empty with none open.

§screens: Vec<String>

The open screens, bottom first.

§suspended: bool

Whether the system has suspended the build.

§focused: bool

Whether its window has the player’s attention.

§quit: bool

Whether the game has quit.

§frame: String

The frame, in the snapshot text format; empty while the game isn’t running.

§screenshot: Option<AttachScreenshot>

The window’s picture, if asked for.

§log: Vec<AttachLogEntry>

The build’s log lines numbered log_since or more, oldest first.

§log_next: u64

The number the build’s next log line gets: the next log_since.

§perf: Vec<FrameRecord>

The frames’ records numbered perf_since or more, oldest first, at most 600; empty without perf_since, and with perf_follow (they are in its file).

§perf_next: Option<u64>

The number to read the records from next time: the next perf_since. Null without perf_since or perf_follow.

§perf_summary: Option<PerfSummary>

What the records add up to: those answered, or with perf_follow every one written. Null with none.

§perf_snapshot: Option<HeapSnapshot>

The heap snapshot taken with the records, with perf_snapshot (with perf_follow, the one as it ended): null where the build doesn’t count the heap by tag.

§follow: Option<AttachFollow>

What perf_follow wrote.

Trait Implementations§

Source§

impl Clone for AttachOutput

Source§

fn clone(&self) -> AttachOutput

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AttachOutput

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for AttachOutput

Source§

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 Eq for AttachOutput

Source§

impl JsonSchema for AttachOutput

Source§

fn schema_name() -> Cow<'static, str>

The name of the generated JSON Schema. Read more
Source§

fn schema_id() -> Cow<'static, str>

Returns a string that uniquely identifies the schema produced by this type. Read more
Source§

fn json_schema(generator: &mut SchemaGenerator) -> Schema

Generates a JSON Schema for this type. Read more
Source§

fn inline_schema() -> bool

Whether JSON Schemas generated for this type should be included directly in parent schemas, rather than being re-used where possible using the $ref keyword. Read more
Source§

impl PartialEq for AttachOutput

Source§

fn eq(&self, other: &AttachOutput) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for AttachOutput

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for AttachOutput

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.