Skip to main content

Crate mt_sea

Crate mt_sea 

Source

Re-exports§

pub use net::Durability;
pub use net::Qos;
pub use net::Reliability;

Modules§

client
coordinator
net
network
ship

Structs§

ArchivedHeader
An archived Header
ArchivedMessage
An immutable, validated rkyv message that owns its backing byte buffer.
ArchivedNetworkShipAddress
An archived NetworkShipAddress
ArchivedTimeMsg
An archived TimeMsg
ConnectionState
Live state of a node’s link to the coordinator.
Header
HeaderResolver
The resolver for an archived Header
NetworkShipAddress
NetworkShipAddressResolver
The resolver for an archived NetworkShipAddress
NodeOptions
Policy shared by every node.
TimeMsg
TimeMsgResolver
The resolver for an archived TimeMsg
Timing
Per-node timing policy.
Variable

Enums§

Action
ActionResolver
The resolver for an archived Action
ArchivedAction
An archived Action
ArchivedShipKind
An archived ShipKind
ArchivedVariableType
An archived VariableType
ReconnectPolicy
What a node should do when it loses the coordinator.
ShipKind
ShipKindResolver
The resolver for an archived ShipKind
VariableType
VariableTypeResolver
The resolver for an archived VariableType

Constants§

COORD_CLIENT_IDLE_TIMEOUT_MS
coordinator Last-resort timeout for coordinator-side per-client handler. This fires for truly isolated or zombie clients that sent no packet for this long.
DISCONNECT_TIMEOUT_MS
[heartbeat] Coordinator drops a client after this long with no message. Must be > HEARTBEAT_INTERVAL_MS + HEARTBEAT_SUPPRESS_MS to avoid false disconnects.
HEARTBEAT_INTERVAL_MS
[heartbeat] How often nodes send heartbeat messages to keep their connection alive.
HEARTBEAT_SUPPRESS_MS
[heartbeat] Heartbeat is skipped if data was sent within this window. Must be ≤ HEARTBEAT_INTERVAL_MS so a heartbeat is always sent before DISCONNECT_TIMEOUT_MS elapses after the last real data.
PEER_DEAD_THRESHOLD
[peer-heartbeat] Consecutive ping failures before declaring a peer dead.
REGISTRATION_TIMEOUT_MS
[registration] How long to wait for a coordinator before giving up on registration.
TRY_RELIABLE_SEND_BUDGET_MS
[try-reliable] Total budget for one Qos::TryReliable delivery. Generous enough to ride out a WiFi roam, bounded so a send can never wedge the caller’s loop the way Qos::Reliable can.

Traits§

Cannon
Coordinator
Sendable
Types that can be serialized and sent.
Ship

Functions§

changed_routes
Ships in after whose actions differ from before, plus always.
get_strategies
init_logging
Initialize logging in the house format, with the transport crates capped however loud RUST_LOG asks everything else to be.
plan_routes_for_var

Type Aliases§

ShipName
WindData