Skip to main content

Crate nexer_protocol

Crate nexer_protocol 

Source
Expand description

Nexer Tunnel Protocol primitives.

This crate intentionally owns only the shared wire contract: JSON envelope parsing, strict protocol-token validation, frame encoding/decoding, target policy helpers, and canonical data-connection signature input. Client CLI, socket orchestration, gateway state, auth backends, and product policy belong in nexer and nexerd.

Modules§

connect_stream_status
error_code
expose_port_status
message_type
open_stream_status
prepare_service_status
service_protocol
service_status

Structs§

AcceptedService
Account
Agent
Auth
ConnectStream
ConnectStreamResult
DataHello
DataReady
DecodedFrame
ErrorBody
ErrorDetail
ExposePort
ExposePortResult
Hello
OpenStream
OpenStreamResult
Ping
Pong
PrepareService
PrepareServiceResult
ProtocolMessage
RegisterServices
RegisterServicesResult
RejectedService
Secret
Service
ServiceStatus
Signature
StreamClosed
StringMap
Target
Text
Token
UnregisterServices
UnregisterServicesResult
Welcome

Enums§

Message
ProtocolError

Constants§

MAX_FRAME_BYTES
PROTOCOL_VERSION

Functions§

canonical_data_signature_input
canonical_data_signature_input_parts
data_signature_hex
encode_frame
from_json
is_default_allowed_target
is_loopback_host
to_json
try_decode_frame
verify_data_signature

Type Aliases§

Extensions
Metadata
Result