9.1 Serializable
dataandenumautomatically implementSerializableif all their fields are serialisable.- Serialisable: primitives,
str,bytes, collections and tuples of serialisable types,T?, unions of serialisable types,distinctand refined types, time types,ActorRef<A>(as an address), Shared<T> (as T),secret<T>(with the restrictions of §9.3). - Not serialisable: borrows,
Rc,Task,stream,iter, functions,Chan. Using them in an rpc, in a persisted actor field or in a topic is a compile error.
Related diagnostics
Source: docs/spec/oxl-standard.en.md