Fostrom.Mail (Fostrom v0.0.2)

%Fostrom.Mail{} is the struct delivered to your handler, and is returned from Fostrom.Mailbox.next/0 if the mailbox is not empty.

Summary

Types

t()

@type t() :: %Fostrom.Mail{
  id: non_neg_integer(),
  mailbox_size: non_neg_integer(),
  name: binary(),
  payload: map() | nil
}
  • id: u64 integer
  • name: name of the packet schema
  • payload: a map (with string keys)
  • mailbox_size: u16 integer