Crate rust_net

Source
Expand description

A Fast and Reactive Distributed Systems ToolBox

RustNet is a set of tools to make building distributed systems easier

Modules§

best_effort_delivery
Gurantees reliability only if sender is correct
failure_detector
assumes synchrony which means timing Bounds of network and processes are fixed with the timeout variable
reliable_delivery
gurantees reliability independent of whether the sender is correct or not
uniform_reliable_delivery
gurantees reliability and also considers the behaviour of failed nodes, reliable Delivery is faster but it doesnt gurantee if all nodes delivered the message including Failled nodes

Structs§

ComponentChannels
a set of channels that every component must have to communicate with external and internal messages
Message
a wrapper around all types of messages
Node
Acts as a mediator between Components All communications is done via channels Node will automatically choose the right component to do the right Task in Runtime Extern Messages are delivered to componnents via flume channels and internal Messages are delivered via pub_sub

Enums§

ComponentTypes
MessageType
all message types must be included in this eunm even newly added component

Traits§

NetComponent
NetComponent Trait must be implemeneted to add a new component