Skip to main content

Crate pb_mapper_core

Crate pb_mapper_core 

Source
Expand description

The bottom layer: credential primitives, framing checksums, configuration, address resolution, the TCP listeners every role binds, and the file primitives the durable stores build on.

Nothing here depends on another pb-mapper crate, which is what makes it the bottom. DataLenType lives here rather than with the message framing that names it, so that checksum and error can use it without depending on the protocol layer.

Modules§

addr
checksum
Credentials and the frame length checksum they key.
codec
config
conn_id
durable_file
Atomic replace and parent-directory durability.
error
listener
The TCP listeners pb-mapper binds for its peers: the relay’s, a connect tunnel’s local one, the direct path’s LAN acceptor and the desktop host’s. Each binds here, so its accept queue is as deep as this crate says rather than as deep as the locked Tokio and mio choose.
paging
One page out of a fully materialised listing.
test_support
What the tests of this crate and the crates above it share: the administrator key they authenticate with, a temporary path of their own, and the lock around the process credential.
time
Wall-clock time and durations in the whole units the wire, state files and diagnostics carry.
timeout

Macros§

snafu_error_get_or_continue
snafu_error_get_or_return
snafu_error_get_or_return_ok
snafu_error_handle

Type Aliases§

DataLenType
The width of the length prefix on a framed message.