Skip to main content

MaybeCodec

Trait MaybeCodec 

Source
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 for xancode::Codec, so any message/result that travels through send / send_and_recv / run_job must 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§

Source§

impl<T: ?Sized> MaybeCodec for T

Available on non-crate feature multi-node only.