pub struct InspectMetadata {
pub errors: Option<Vec<InspectError>>,
pub name: InspectHandleName,
pub component_url: FlyStr,
pub timestamp: Timestamp,
pub escrowed: bool,
}
Expand description
The metadata contained in a DiagnosticsData
object where the data source is
DataSource::Inspect
.
Fields§
§errors: Option<Vec<InspectError>>
Optional vector of errors encountered by platform.
name: InspectHandleName
Name of diagnostics source producing data.
component_url: FlyStr
The url with which the component was launched.
timestamp: Timestamp
Boot time in nanos.
escrowed: bool
When set to true, the data was escrowed. Otherwise, the data was fetched live from the source component at runtime. When absent, it means the value is false.
Implementations§
Source§impl InspectMetadata
impl InspectMetadata
Sourcepub fn component_url(&self) -> &str
pub fn component_url(&self) -> &str
Returns the component URL with which the component that emitted the associated Inspect data was launched.
Trait Implementations§
Source§impl Clone for InspectMetadata
impl Clone for InspectMetadata
Source§fn clone(&self) -> InspectMetadata
fn clone(&self) -> InspectMetadata
Returns a copy 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 InspectMetadata
impl Debug for InspectMetadata
Source§impl<'de> Deserialize<'de> for InspectMetadata
impl<'de> Deserialize<'de> for InspectMetadata
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 Metadata for InspectMetadata
impl Metadata for InspectMetadata
Source§type Error = InspectError
type Error = InspectError
The type of error returned in this metadata.
Source§fn errors(&self) -> Option<&[Self::Error]>
fn errors(&self) -> Option<&[Self::Error]>
Returns the errors recorded with this value, if any.
Source§fn set_errors(&mut self, errors: Vec<Self::Error>)
fn set_errors(&mut self, errors: Vec<Self::Error>)
Overrides the errors associated with this value.
Source§fn has_errors(&self) -> bool
fn has_errors(&self) -> bool
Returns whether any errors are recorded on this value.
Source§impl PartialEq for InspectMetadata
impl PartialEq for InspectMetadata
Source§impl Serialize for InspectMetadata
impl Serialize for InspectMetadata
impl StructuralPartialEq for InspectMetadata
Auto Trait Implementations§
impl Freeze for InspectMetadata
impl RefUnwindSafe for InspectMetadata
impl Send for InspectMetadata
impl Sync for InspectMetadata
impl Unpin for InspectMetadata
impl UnwindSafe for InspectMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)