[][src]Struct kompact::prelude::UniquePath

pub struct UniquePath { /* fields omitted */ }

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]

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]

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]

impl Debug for UniquePath[src]

impl Eq for UniquePath[src]

impl From<UniquePath> for ActorPath[src]

impl FromStr for UniquePath[src]

type Err = PathParseError

The associated error which can be returned from parsing.

impl Hash for UniquePath[src]

impl Ord for UniquePath[src]

impl PartialEq<UniquePath> for UniquePath[src]

impl PartialOrd<UniquePath> for UniquePath[src]

impl StructuralEq for UniquePath[src]

impl StructuralPartialEq for UniquePath[src]

impl SystemField for UniquePath[src]

impl TryFrom<String> for UniquePath[src]

type Error = PathParseError

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[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]

impl<T> SendSyncUnwindSafe for T where
    T: Send + Sync + UnwindSafe + ?Sized
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,