Juvix imports
module arch.node.net.transport_connection_environment;
import arch.node.types.basics open;
import arch.node.types.engine open;
import arch.node.types.messages open;
import arch.node.types.identities open;
import arch.node.types.anoma_message as Anoma open;
Transport Connection Environment¶
Overview¶
The Engine environment of the engine.
Mailbox states¶
syntax alias TransportConnectionMailboxState := Unit;
Local state¶
type TransportConnectionLocalState := mkTransportConnectionLocalState;
Timer Handle¶
TransportConnectionTimerHandle : Type := Unit;
The TransportConnection does not require a timer handle type.
Therefore, we define the timer handle type as Unit
.
Timestamped Trigger¶
TransportConnectionTimestampedTrigger : Type :=
TimestampedTrigger TransportConnectionTimerHandle Anoma.Msg;
The Transport Connection Environment¶
TransportConnectionEnv
¶
TransportConnectionEnv : Type :=
EngineEnv
TransportConnectionLocalState
TransportConnectionMailboxState
TransportConnectionTimerHandle
Anoma.Msg;
Instantiation¶
exTransportConnectionEnv : TransportConnectionEnv :=
mkEngineEnv@{
localState := mkTransportConnectionLocalState;
mailboxCluster := Map.empty;
acquaintances := Set.empty;
timers := [];
};