Skip to main content

RemoteEndpoint

Trait RemoteEndpoint 

Source
pub trait RemoteEndpoint<M>: Endpoint<M> {
    // Required method
    fn post_with_headers<C>(self, cx: &C, headers: Flattrs, message: M)
       where C: Actor;
}
Expand description

A typed endpoint that can receive M with message headers.

RemoteEndpoint is implemented only for endpoints whose post path preserves headers.

Required Methods§

Source

fn post_with_headers<C>(self, cx: &C, headers: Flattrs, message: M)
where C: Actor,

Post message and headers to this endpoint from cx.

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementors§