Module safe_network::messaging[][src]

Expand description

The messaging interface to the network. Messages sent and serialised in line with this module should be acted upon by the network.

Re-exports

pub use self::location::Aggregation;
pub use self::location::DstLocation;
pub use self::location::EndUser;
pub use self::location::Itinerary;
pub use self::location::SrcLocation;
pub use self::sap::SectionAuthorityProvider;
pub use self::serialisation::WireMsg;

Modules

client

Messages to/from the client Client messaging.

location

Source and destination structs for messages

node

Node to node messages

sap

SectionAuthorityProvider

section_info

Queries and responses for section info

serialisation

Functionality for serialising and deserialising messages

Structs

DstInfo

This is information kept by ‘MessageType’ so it can be properly serialised with a valid ‘WireMsgHeader’

MessageId

Unique ID for messages.

Enums

Error

Error messages across the network

MessageType

Type of message. Note this is part of this crate’s public API but this enum is never serialised or even part of the message that is sent over the wire.

Constants

MESSAGE_ID_LEN

Constant byte length of MessageId.

Type Definitions

Result

A specialised Result type for safecoin.