[][src]Trait kompact::prelude::SerialisationId

pub trait SerialisationId {
    const SER_ID: SerId;
}

A trait that acts like a stable TypeId for serialisation

Requires ids to be assigned manually in some consistent fashion so they can be reliable compared between in different binaries and rust versions.

This trait is used with serialisers that can deal with a large number of types but require some internal differentiation, such as Serde, for example.

Associated Constants

const SER_ID: SerId

The serialisation id for this type

Loading content...

Implementors

impl SerialisationId for ActorPath[src]

Loading content...