pub struct ProcessPath { /* private fields */ }Expand description
Identifies the process as component of an app instance.
The path format as string is the "instance_id//process_id/process_id", the instance_id is in in hexadecimal, followed by
the process_ids in decimal, separated by '/'.
Use process_path to get the current process path.
Implementations§
Source§impl ProcessPath
impl ProcessPath
Sourcepub fn instance_id(&self) -> u64
pub fn instance_id(&self) -> u64
Unique ID of the current app instance.
Sourcepub fn process_ids(&self) -> &[u32]
pub fn process_ids(&self) -> &[u32]
The std::process::id of the process chain, from parent to child.
Trait Implementations§
Source§impl Clone for ProcessPath
impl Clone for ProcessPath
Source§fn clone(&self) -> ProcessPath
fn clone(&self) -> ProcessPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProcessPath
impl Debug for ProcessPath
Source§impl<'de> Deserialize<'de> for ProcessPath
impl<'de> Deserialize<'de> for ProcessPath
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 Display for ProcessPath
Alternate mode ("{:#}") uses - separator.
impl Display for ProcessPath
Alternate mode ("{:#}") uses - separator.
impl Eq for ProcessPath
Source§impl FromStr for ProcessPath
impl FromStr for ProcessPath
Source§impl Hash for ProcessPath
impl Hash for ProcessPath
Source§impl PartialEq for ProcessPath
impl PartialEq for ProcessPath
Source§impl Serialize for ProcessPath
impl Serialize for ProcessPath
impl StructuralPartialEq for ProcessPath
Auto Trait Implementations§
impl Freeze for ProcessPath
impl RefUnwindSafe for ProcessPath
impl Send for ProcessPath
impl Sync for ProcessPath
impl Unpin for ProcessPath
impl UnsafeUnpin for ProcessPath
impl UnwindSafe for ProcessPath
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
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> ⓘ
Converts
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> ⓘ
Converts
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