Struct tiny_tokio_actor::ActorPath
source · pub struct ActorPath(/* private fields */);
Expand description
Unique identifier for running actors.
Implementations§
source§impl ActorPath
impl ActorPath
pub fn is_empty(&self) -> bool
pub fn root(&self) -> Self
pub fn parent(&self) -> Self
pub fn key(&self) -> String
pub fn level(&self) -> usize
pub fn at_level(&self, level: usize) -> Self
pub fn is_ancestor_of(&self, other: &ActorPath) -> bool
pub fn is_descendant_of(&self, other: &ActorPath) -> bool
pub fn is_parent_of(&self, other: &ActorPath) -> bool
pub fn is_child_of(&self, other: &ActorPath) -> bool
pub fn is_top_level(&self) -> bool
Trait Implementations§
source§impl Ord for ActorPath
impl Ord for ActorPath
source§impl PartialEq for ActorPath
impl PartialEq for ActorPath
source§impl PartialOrd for ActorPath
impl PartialOrd for ActorPath
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ActorPath
impl StructuralEq for ActorPath
impl StructuralPartialEq for ActorPath
Auto Trait Implementations§
impl RefUnwindSafe for ActorPath
impl Send for ActorPath
impl Sync for ActorPath
impl Unpin for ActorPath
impl UnwindSafe for ActorPath
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