pub trait EncodeContext {
// Required method
fn register(
&self,
actor: Recipient<BinaryMessage>,
) -> Result<(), EncodeError>;
}Expand description
Context for encoding messages.
Required Methods§
Sourcefn register(&self, actor: Recipient<BinaryMessage>) -> Result<(), EncodeError>
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".