pub enum InspectHandleName {
Name(FlyStr),
Filename(FlyStr),
}
Expand description
The possible name for a handle to inspect data. It could be a filename (being deprecated) or a
name published using fuchsia.inspect.InspectSink
.
Variants§
Name(FlyStr)
The name of an InspectHandle
. This comes from the name
argument
in InspectSink
.
Filename(FlyStr)
The name of the file source when reading a file source of Inspect (eg an inspect VMO file or fuchsia.inspect.Tree in out/diagnostics)
Implementations§
Source§impl InspectHandleName
impl InspectHandleName
Sourcepub fn as_filename(&self) -> Option<&str>
pub fn as_filename(&self) -> Option<&str>
If variant is Filename, get the underlying value
Trait Implementations§
Source§impl AsRef<str> for InspectHandleName
impl AsRef<str> for InspectHandleName
Source§impl Clone for InspectHandleName
impl Clone for InspectHandleName
Source§fn clone(&self) -> InspectHandleName
fn clone(&self) -> InspectHandleName
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 InspectHandleName
impl Debug for InspectHandleName
Source§impl<'de> Deserialize<'de> for InspectHandleName
impl<'de> Deserialize<'de> for InspectHandleName
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 Hash for InspectHandleName
impl Hash for InspectHandleName
Source§impl PartialEq for InspectHandleName
impl PartialEq for InspectHandleName
Source§impl Serialize for InspectHandleName
impl Serialize for InspectHandleName
impl Eq for InspectHandleName
impl StructuralPartialEq for InspectHandleName
Auto Trait Implementations§
impl Freeze for InspectHandleName
impl RefUnwindSafe for InspectHandleName
impl Send for InspectHandleName
impl Sync for InspectHandleName
impl Unpin for InspectHandleName
impl UnwindSafe for InspectHandleName
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
)