View Source Finitomata.Persistency.Persistable protocol (Finitomata v0.14.5)
The protocol to be implemented for custom data to be used in pair with
Finitomata.Persistency.Protocol
persistency adapter.
For that combination, one should implement the protocol for that particular
struct and specify Finitomata.Persistency.Protocol
as a persistency
in a call to use Finitomata
.
use Finitomata, …, persistency: Finitomata.Persistency.Protocol
Link to this section Summary
Functions
Loads the entity from some external storage
Persists the transitioned entity to some external storage
Persists the error happened while an attempt to transition the entity
Link to this section Types
@type t() :: term()
All the types that implement this protocol.
Link to this section Functions
Loads the entity from some external storage
Persists the transitioned entity to some external storage
Persists the error happened while an attempt to transition the entity