pub struct ActorTreeSnapshot {
pub pid: Index,
pub type_name: String,
pub status: ActorStatus,
pub stats: ActorStats,
pub handlers: HashMap<u64, String>,
pub children: HashMap<Index, ActorTreeSnapshot>,
pub events: Vec<Event>,
pub spans: Vec<Vec<String>>,
}
Expand description
A snapshot of an actor tree (rooted at a pid=0 actor).
Fields§
§pid: Index
The PID of this actor.
type_name: String
The type name of the actor. If the actor is crate::Named
, then
this is the registered name; otherwise it is the actor type’s
std::any::type_name
.
status: ActorStatus
The actor’s current status.
stats: ActorStats
Various operational stats for the actor.
handlers: HashMap<u64, String>
This actor’s handlers, mapping port numbers to the named type handled.
children: HashMap<Index, ActorTreeSnapshot>
This actor’s children.
events: Vec<Event>
Recent events emitted by the actor’s logging.
spans: Vec<Vec<String>>
The current set of spans entered by the actor. These should be active only while the actor is entered in a handler.
Trait Implementations§
Source§impl Clone for ActorTreeSnapshot
impl Clone for ActorTreeSnapshot
Source§fn clone(&self) -> ActorTreeSnapshot
fn clone(&self) -> ActorTreeSnapshot
Returns a duplicate 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 ActorTreeSnapshot
impl Debug for ActorTreeSnapshot
Source§impl<'de> Deserialize<'de> for ActorTreeSnapshot
impl<'de> Deserialize<'de> for ActorTreeSnapshot
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 ActorTreeSnapshot
impl Hash for ActorTreeSnapshot
Source§impl PartialEq for ActorTreeSnapshot
impl PartialEq for ActorTreeSnapshot
Source§impl Serialize for ActorTreeSnapshot
impl Serialize for ActorTreeSnapshot
impl StructuralPartialEq for ActorTreeSnapshot
Auto Trait Implementations§
impl Freeze for ActorTreeSnapshot
impl RefUnwindSafe for ActorTreeSnapshot
impl Send for ActorTreeSnapshot
impl Sync for ActorTreeSnapshot
impl Unpin for ActorTreeSnapshot
impl UnwindSafe for ActorTreeSnapshot
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> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<A, M> Handler<IndexedErasedUnbound<M>> for A
impl<A, M> Handler<IndexedErasedUnbound<M>> for A
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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