Skip to main content

EndpointAddress

Trait EndpointAddress 

Source
pub trait EndpointAddress:
    Debug
    + Send
    + Sync {
    type Addr;

    // Required method
    fn addr(&self) -> Self::Addr;
}
Expand description

Message Endpoint

Required Associated Types§

Required Methods§

Source

fn addr(&self) -> Self::Addr

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl EndpointAddress for u64

Source§

type Addr = u64

Source§

fn addr(&self) -> Self::Addr

Implementors§

Source§

impl<'a, M, R, Lock, Ref> EndpointAddress for Endpoint<'a, M, R, Lock, Ref>
where R: 'a, M: Payload, Ref: Deref<Target: AnyLock<EndpointInner<'a, M, R>>> + From<Lock> + Clone + Send + Sync, Lock: AnyLock<EndpointInner<'a, M, R>> + Send + Sync,