[−][src]Struct kompact::prelude::UniquePath
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
impl UniquePath
[src]
pub fn new(
protocol: Transport,
address: IpAddr,
port: u16,
id: Uuid
) -> UniquePath
[src]
protocol: Transport,
address: IpAddr,
port: u16,
id: Uuid
) -> UniquePath
Construct a new unique path from parts
pub fn with_system(system: SystemPath, id: Uuid) -> UniquePath
[src]
Construct a new unique path from a system path and an id
pub fn with_socket(
protocol: Transport,
socket: SocketAddr,
id: Uuid
) -> UniquePath
[src]
protocol: Transport,
socket: SocketAddr,
id: Uuid
) -> UniquePath
Construct a new unique path with a socket and an id
pub fn id(&self) -> Uuid
[src]
Returns a reference to this path's unique id
pub fn system_mut(&mut self) -> &mut SystemPath
[src]
Returns a mutable reference to this path's system path part
Trait Implementations
impl Clone for UniquePath
[src]
fn clone(&self) -> UniquePath
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for UniquePath
[src]
impl Eq for UniquePath
[src]
impl From<UniquePath> for ActorPath
[src]
fn from(p: UniquePath) -> ActorPath
[src]
impl FromStr for UniquePath
[src]
type Err = PathParseError
The associated error which can be returned from parsing.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for UniquePath
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for UniquePath
[src]
fn cmp(&self, other: &UniquePath) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<UniquePath> for UniquePath
[src]
fn eq(&self, other: &UniquePath) -> bool
[src]
fn ne(&self, other: &UniquePath) -> bool
[src]
impl PartialOrd<UniquePath> for UniquePath
[src]
fn partial_cmp(&self, other: &UniquePath) -> Option<Ordering>
[src]
fn lt(&self, other: &UniquePath) -> bool
[src]
fn le(&self, other: &UniquePath) -> bool
[src]
fn gt(&self, other: &UniquePath) -> bool
[src]
fn ge(&self, other: &UniquePath) -> bool
[src]
impl StructuralEq for UniquePath
[src]
impl StructuralPartialEq for UniquePath
[src]
impl SystemField for UniquePath
[src]
fn system(&self) -> &SystemPath
[src]
fn protocol(&self) -> Transport
[src]
fn address(&self) -> &IpAddr
[src]
fn port(&self) -> u16
[src]
impl TryFrom<String> for UniquePath
[src]
Auto Trait Implementations
impl RefUnwindSafe for UniquePath
impl Send for UniquePath
impl Sync for UniquePath
impl Unpin for UniquePath
impl UnwindSafe for UniquePath
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,