Crate connection_layer

Source

Modules§

prelude
This module provides a prelude with the most commonly used types from the crate.

Structs§

ConnectionId
A seed used for generating a Murmur3 hash for connection validation. Represents a unique connection identifier for the session.
ConnectionLayer
Represents the header of a connection with an ID and a Murmur3 hash.
ConnectionSecretSeed

Enums§

ConnectionLayerMode
Represents the mode of a connection layer, which can be either Out-Of-Band (OOB) or an active connection.

Functions§

verify_hash
Verifies the integrity of a payload against an expected Murmur3 hash.
write_empty
write_to_stream
Writes a connection header and a payload to the provided stream, including a Murmur3 hash for validation.

Type Aliases§

RequestId