pub enum ActorPath {
Local(String),
Distant(ConnectionInfo),
}Expand description
Path to an actor.
This enum contains the information for actors whether they are local or distant.
Variants§
Local(String)
Logical path to a local actor.
Distant(ConnectionInfo)
Logical path and connection information for a distant actor.
Implementations§
Source§impl ActorPath
impl ActorPath
Sourcepub fn new_local(path: String) -> Arc<ActorPath>
pub fn new_local(path: String) -> Arc<ActorPath>
Creates a new local ActorPath variant with the given logical_path.
Sourcepub fn new_distant(
distant_logical_path: String,
addr_port: String,
) -> Arc<ActorPath>
pub fn new_distant( distant_logical_path: String, addr_port: String, ) -> Arc<ActorPath>
Creates a new distant ActorPath.
Sourcepub fn logical_path(&self) -> &String
pub fn logical_path(&self) -> &String
Gives a reference to the logical path of an actor.
Note that this gives the local logical path whether the actor is local or not.
Trait Implementations§
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 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