Struct actix_telepathy::RemoteAddr[][src]

pub struct RemoteAddr {
    pub socket_addr: SocketAddr,
    pub network_interface: Option<Addr<NetworkInterface>>,
    // some fields omitted
}

Similar to actix::prelude::Addr but supports communication to remote actors on other nodes.

Fields

socket_addr: SocketAddrnetwork_interface: Option<Addr<NetworkInterface>>

Implementations

impl RemoteAddr[src]

pub fn new(
    socket_addr: SocketAddr,
    network_interface: Option<Addr<NetworkInterface>>,
    id: AddrRepresentation
) -> Self
[src]

pub fn new_from_id(socket_addr: SocketAddr, id: &str) -> Self[src]

pub fn new_from_key(
    socket_addr: SocketAddr,
    network_interface: Addr<NetworkInterface>,
    id: &str
) -> Self
[src]

pub fn new_gossip(
    socket_addr: SocketAddr,
    network_interface: Option<Addr<NetworkInterface>>
) -> Self
[src]

pub fn set_network_interface(
    &mut self,
    network_interface: Addr<NetworkInterface>
)
[src]

pub fn change_id(&mut self, id: String)[src]

pub fn do_send<T: RemoteMessage + Serialize>(&self, msg: T)[src]

pub fn send<T: RemoteMessage + Serialize>(
    &self,
    _msg: Box<T>
) -> RecipientRequest<ClusterMessage>
[src]

Trait Implementations

impl Clone for RemoteAddr[src]

impl Debug for RemoteAddr[src]

impl<'de> Deserialize<'de> for RemoteAddr[src]

impl Eq for RemoteAddr[src]

impl Hash for RemoteAddr[src]

impl PartialEq<RemoteAddr> for RemoteAddr[src]

impl Serialize for RemoteAddr[src]

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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>,