pub struct ActorPath {
pub address: Address,
pub elements: Vec<PathElement>,
pub uid: u64,
}Fields§
§address: Address§elements: Vec<PathElement>§uid: u64Implementations§
Source§impl ActorPath
impl ActorPath
pub fn root(address: Address) -> Self
pub fn child(&self, name: impl Into<String>) -> Self
pub fn with_uid(self, uid: u64) -> Self
pub fn name(&self) -> &str
pub fn parent(&self) -> Option<Self>
pub fn depth(&self) -> usize
pub fn to_string_without_address(&self) -> String
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ActorPath
impl<'de> Deserialize<'de> for ActorPath
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
impl Eq for ActorPath
impl StructuralPartialEq for ActorPath
Auto Trait Implementations§
impl Freeze for ActorPath
impl RefUnwindSafe for ActorPath
impl Send for ActorPath
impl Sync for ActorPath
impl Unpin for ActorPath
impl UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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
Compare self to
key and return true if they are equal.