pub trait MaybeCodec { }Expand description
Bound on Actor::Message / Actor::Result.
- Without
multi-node: vacuous (impl<T: ?Sized> MaybeCodec for T), every type satisfies it — single-node users see no extra constraint. - With
multi-node: a supertrait alias forxancode::Codec, so any message/result that travels throughsend/send_and_recv/run_jobmust be serializable. Local routing still skips encoding, but the bound is enforced at compile time regardless.
Implemented automatically via blanket impl; you should never need to implement it manually.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl<T: ?Sized> MaybeCodec for T
Available on non-crate feature
multi-node only.