Pique v0.1.0 Pique.Behaviours.Handler behaviour View Source

Behaviour for handlers. Ideally they should return {:ok, state} or {:error, reason} with reason being a string passed back to the SMTP client.

Link to this section Summary

Link to this section Callbacks

Link to this callback

handle(state)

View Source
handle(state :: term()) :: {:ok, value :: term()} | {:error, reason :: term()}