pub struct NamedPath { /* private fields */ }Expand description
A named actor path identifies a service, rather than a concrete actor instance
Named paths must be registered to a particular actor, and their registration can be changed over time, as actors fail and are replaced, for example.
Named paths may be described hierarchically, similar to URLs.
A named path may look something like "tcp://127.0.0.1:8080/my-actor-group/my-actor", for example.
Implementations§
Source§impl NamedPath
impl NamedPath
Sourcepub fn new(
protocol: Transport,
address: IpAddr,
port: u16,
path: Vec<String>,
) -> NamedPath
pub fn new( protocol: Transport, address: IpAddr, port: u16, path: Vec<String>, ) -> NamedPath
Construct a new named path from parts
Make sure that none of the elements of the path vector contain slashes (i.e., /),
as those will be the path separators for the individual elements later.
Sourcepub fn with_socket(
protocol: Transport,
socket: SocketAddr,
path: Vec<String>,
) -> NamedPath
pub fn with_socket( protocol: Transport, socket: SocketAddr, path: Vec<String>, ) -> NamedPath
Construct a new named path from a socket and vector of path elements
Make sure that none of the elements of the path vector contain slashes (i.e., /),
as those will be the path separators for the individual elements later.
Sourcepub fn with_system(system: SystemPath, path: Vec<String>) -> NamedPath
pub fn with_system(system: SystemPath, path: Vec<String>) -> NamedPath
Construct a new named path from a system path and vector of path elements
Make sure that none of the elements of the path vector contain slashes (i.e., /),
as those will be the path separators for the individual elements later.
Sourcepub fn clone_path(&self) -> Vec<String>
pub fn clone_path(&self) -> Vec<String>
Returns a copy to the path vector
Sourcepub fn system_mut(&mut self) -> &mut SystemPath
pub fn system_mut(&mut self) -> &mut SystemPath
Returns a mutable reference to this path’s system path part
Trait Implementations§
Source§impl Div<&str> for NamedPath
Some syntactic sugar for append
impl Div<&str> for NamedPath
Some syntactic sugar for append
Allows the pretty path / "segment" / "*" syntax
to create sub-paths of path.
Source§impl Div<char> for NamedPath
Some syntactic sugar for push
impl Div<char> for NamedPath
Some syntactic sugar for push
Allows the pretty path / '*' syntax
to create a broadcast variant of path.
Source§impl Ord for NamedPath
impl Ord for NamedPath
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for NamedPath
impl PartialOrd for NamedPath
Source§impl SystemField for NamedPath
impl SystemField for NamedPath
Source§fn system(&self) -> &SystemPath
fn system(&self) -> &SystemPath
impl Eq for NamedPath
impl StructuralPartialEq for NamedPath
Auto Trait Implementations§
impl Freeze for NamedPath
impl RefUnwindSafe for NamedPath
impl Send for NamedPath
impl Sync for NamedPath
impl Unpin for NamedPath
impl UnsafeUnpin for NamedPath
impl UnwindSafe for NamedPath
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<T> DispatchEvent for T
impl<T> DispatchEvent for T
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
key and return true if they are equal.