[][src]Struct kompact::prelude::NamedPath

pub struct NamedPath { /* fields omitted */ }

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.

Methods

impl NamedPath[src]

pub fn new(
    protocol: Transport,
    address: IpAddr,
    port: u16,
    path: Vec<String>
) -> NamedPath
[src]

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.

pub fn with_socket(
    protocol: Transport,
    socket: SocketAddr,
    path: Vec<String>
) -> NamedPath
[src]

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.

pub fn with_system(system: SystemPath, path: Vec<String>) -> NamedPath[src]

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.

pub fn path_ref(&self) -> &Vec<String>[src]

Returns a reference to the path vector

pub fn clone_path(&self) -> Vec<String>[src]

Returns a copy to the path vector

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 NamedPath[src]

impl Debug for NamedPath[src]

impl Eq for NamedPath[src]

impl From<NamedPath> for ActorPath[src]

impl FromStr for NamedPath[src]

type Err = PathParseError

The associated error which can be returned from parsing.

impl Hash for NamedPath[src]

impl Ord for NamedPath[src]

impl PartialEq<NamedPath> for NamedPath[src]

impl PartialOrd<NamedPath> for NamedPath[src]

impl StructuralEq for NamedPath[src]

impl StructuralPartialEq for NamedPath[src]

impl SystemField for NamedPath[src]

impl TryFrom<String> for NamedPath[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> 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<K> TrieKey for K where
    K: Eq + Hash + ?Sized
[src]

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>,