pub struct UniquePath { /* private fields */ }Expand description
A unique actor path identifies a concrete instance of an actor
Unique actor paths use the component’s unique id internally.
Unique actor paths become invalid when a component is replaced with a new instance of the same type.
A unique path may look something like "tcp://127.0.0.1:8080#1e555f40-de1d-4aee-8202-64fdc27edfa8", for example.
Implementations§
Source§impl UniquePath
impl UniquePath
Sourcepub fn new(
protocol: Transport,
address: IpAddr,
port: u16,
id: Uuid,
) -> UniquePath
pub fn new( protocol: Transport, address: IpAddr, port: u16, id: Uuid, ) -> UniquePath
Construct a new unique path from parts
Sourcepub fn with_system(system: SystemPath, id: Uuid) -> UniquePath
pub fn with_system(system: SystemPath, id: Uuid) -> UniquePath
Construct a new unique path from a system path and an id
Sourcepub fn with_socket(
protocol: Transport,
socket: SocketAddr,
id: Uuid,
) -> UniquePath
pub fn with_socket( protocol: Transport, socket: SocketAddr, id: Uuid, ) -> UniquePath
Construct a new unique path with a socket and an id
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 Clone for UniquePath
impl Clone for UniquePath
Source§fn clone(&self) -> UniquePath
fn clone(&self) -> UniquePath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UniquePath
impl Debug for UniquePath
Source§impl From<UniquePath> for ActorPath
impl From<UniquePath> for ActorPath
Source§fn from(p: UniquePath) -> ActorPath
fn from(p: UniquePath) -> ActorPath
Converts to this type from the input type.
Source§impl FromStr for UniquePath
impl FromStr for UniquePath
Source§type Err = PathParseError
type Err = PathParseError
The associated error which can be returned from parsing.
Source§fn from_str(s: &str) -> Result<UniquePath, <UniquePath as FromStr>::Err>
fn from_str(s: &str) -> Result<UniquePath, <UniquePath as FromStr>::Err>
Parses a string
s to return a value of this type. Read moreSource§impl Hash for UniquePath
impl Hash for UniquePath
Source§impl Ord for UniquePath
impl Ord for UniquePath
Source§fn cmp(&self, other: &UniquePath) -> Ordering
fn cmp(&self, other: &UniquePath) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for UniquePath
impl PartialEq for UniquePath
Source§fn eq(&self, other: &UniquePath) -> bool
fn eq(&self, other: &UniquePath) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for UniquePath
impl PartialOrd for UniquePath
Source§impl SystemField for UniquePath
impl SystemField for UniquePath
Source§fn system(&self) -> &SystemPath
fn system(&self) -> &SystemPath
Returns a reference to the system path
Source§impl TryFrom<String> for UniquePath
impl TryFrom<String> for UniquePath
Source§type Error = PathParseError
type Error = PathParseError
The type returned in the event of a conversion error.
Source§fn try_from(
s: String,
) -> Result<UniquePath, <UniquePath as TryFrom<String>>::Error>
fn try_from( s: String, ) -> Result<UniquePath, <UniquePath as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for UniquePath
impl StructuralPartialEq for UniquePath
Auto Trait Implementations§
impl Freeze for UniquePath
impl RefUnwindSafe for UniquePath
impl Send for UniquePath
impl Sync for UniquePath
impl Unpin for UniquePath
impl UnsafeUnpin for UniquePath
impl UnwindSafe for UniquePath
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> 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
Compare self to
key and return true if they are equal.