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
@type t() :: %Fostrom.Mail{ id: non_neg_integer(), mailbox_size: non_neg_integer(), name: binary(), payload: map() | nil }
id
: u64 integername
: name of the packet schemapayload
: a map (with string keys)mailbox_size
: u16 integer