pub struct ShowResultItem(/* private fields */);Methods from Deref<Target = InspectData>§
Sourcepub fn msg(&self) -> Option<&str>
pub fn msg(&self) -> Option<&str>
Returns the string log associated with the message, if one exists.
Sourcepub fn payload_message(&self) -> Option<&DiagnosticsHierarchy<LogsField>>
pub fn payload_message(&self) -> Option<&DiagnosticsHierarchy<LogsField>>
If the log has message, returns an exclusive reference to it.
Sourcepub fn payload_keys(&self) -> Option<&DiagnosticsHierarchy<LogsField>>
pub fn payload_keys(&self) -> Option<&DiagnosticsHierarchy<LogsField>>
If the log has structured keys, returns an exclusive reference to them.
pub fn metadata(&self) -> &LogsMetadata
Sourcepub fn payload_keys_strings(
&self,
) -> Box<dyn Iterator<Item = String> + Send + '_>
pub fn payload_keys_strings( &self, ) -> Box<dyn Iterator<Item = String> + Send + '_>
Returns an iterator over the payload keys as strings with the format “key=value”.
Sourcepub fn file_path(&self) -> Option<&str>
pub fn file_path(&self) -> Option<&str>
Returns the file path associated with the message, if one exists.
Sourcepub fn line_number(&self) -> Option<&u64>
pub fn line_number(&self) -> Option<&u64>
Returns the line number associated with the message, if one exists.
Returns the tags associated with the message, if any exist.
Sourcepub fn dropped_logs(&self) -> Option<u64>
pub fn dropped_logs(&self) -> Option<u64>
Returns number of dropped logs if reported in the message.
Sourcepub fn rolled_out_logs(&self) -> Option<u64>
pub fn rolled_out_logs(&self) -> Option<u64>
Returns number of rolled out logs if reported in the message.
Sourcepub fn component_name_by_url(&self) -> Cow<'_, str>
pub fn component_name_by_url(&self) -> Cow<'_, str>
Returns a component name derived from the component URL if available and non-empty. Otherwise, it falls back to the component’s moniker. This name is intended for display purposes in logs, where showing the full URL or moniker might be impractical.
Sourcepub fn component_name(&self) -> Cow<'_, str>
pub fn component_name(&self) -> Cow<'_, str>
Returns the component name. This only makes sense for v1 components.
Trait Implementations§
Source§impl Deref for ShowResultItem
impl Deref for ShowResultItem
Source§impl Ord for ShowResultItem
impl Ord for ShowResultItem
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ShowResultItem
impl PartialEq for ShowResultItem
Source§fn eq(&self, other: &ShowResultItem) -> bool
fn eq(&self, other: &ShowResultItem) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ShowResultItem
impl PartialOrd for ShowResultItem
Source§impl Serialize for ShowResultItem
impl Serialize for ShowResultItem
impl Eq for ShowResultItem
impl StructuralPartialEq for ShowResultItem
Auto Trait Implementations§
impl Freeze for ShowResultItem
impl RefUnwindSafe for ShowResultItem
impl Send for ShowResultItem
impl Sync for ShowResultItem
impl Unpin for ShowResultItem
impl UnsafeUnpin for ShowResultItem
impl UnwindSafe for ShowResultItem
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
Source§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
Source§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
§impl<T> InstanceFromServiceTransport<T> for T
impl<T> InstanceFromServiceTransport<T> for T
§fn from_service_transport(handle: T) -> T
fn from_service_transport(handle: T) -> T
T to [Self]§impl<T> IntoAny for T
impl<T> IntoAny for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more