Skip to main content

EncodeContext

Trait EncodeContext 

Source
pub trait EncodeContext {
    // Required method
    fn register(
        &self,
        actor: Recipient<BinaryMessage>,
    ) -> Result<(), EncodeError>;
}
Expand description

Context for encoding messages.

Required Methods§

Source

fn register(&self, actor: Recipient<BinaryMessage>) -> Result<(), EncodeError>

Registers an actor with its RemoteMailbox.

The actor becomes reachable from other processes after registration.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§