Skip to main content

Module types

Module types 

Source

Structsยง

ByteCapabilities
Wrapper for Capabilities that makes conversion to/from u8 possible.
HoprSession
Represents the Session protocol socket over HOPR.
HoprSessionConfig
Configures the Session protocol socket over HOPR.
IncomingSession
Wrapper for incoming HoprSession along with other information extracted from the Start protocol during the session establishment.
SessionId
Unique ID of a specific Session in a certain direction.

Enumsยง

ClosureReason
Indicates the closure reason of a HoprSession.
SessionTarget
Defines what should happen with the data at the recipient where the data from the established session are supposed to be forwarded to some target.

Constantsยง

MAX_SESSION_ID_STR_LEN ๐Ÿ”’
SESSION_SOCKET_CAPACITY ๐Ÿ”’

Traitsยง

AsyncReadWrite ๐Ÿ”’
Helper trait to allow Box aliasing

Functionsยง

caps_to_ack_mode ๐Ÿ”’
max_decimal_digits_for_n_bytes ๐Ÿ”’
Calculates the maximum number of decimal digits needed to represent an N-byte unsigned integer.

Type Aliasesยง

HoprStartProtocol
Start protocol instantiation for HOPR.
ServiceId
Describes a node service target. These are specialized SessionTargets that are local to the Exit node and have different purposes, such as Cover Traffic.