Module distant_net::common
source · Modules
Macros
Structs
Represents a codec that chains together other codecs such that encoding will call the encode
methods of the underlying, chained codecs from left-to-right and decoding will call the decode
methods in reverse order
distant connects and logs into the specified destination, which may be specified as either
hostname:port where an attempt to connect to a distant server will be made, or a URI of
one of the following forms:Represents some data wrapped in a frame in order to ship it over the network. The format is
simple and follows
{len}{item} where len is the length of the item as a u64.Represents a secret key used with transport encryption and authentication that is stored on the
heap
Represents a
Transport comprised of two inmemory channelsReadiness event interest.
Utility to support performing an exchange of public keys and salts in order to derive a shared
key between two separate entities
Contains map information for connections and other use cases
Represents a
Listener that uses an mpsc::Receiver to
accept new connectionsRepresents a
Listener that only has a single connectionRepresents a codec that does not alter the frame (synonymous with “plain text”)
Represents some range of ports
Represents a codec that invokes one of two codecs based on the given predicate
Represents a wrapper around
EncodedPoint, and exists to
fix an issue with serde deserialization failing when
directly serializing the EncodedPoint typeDescribes the readiness state of an I/O resources.
Represents a request to send
Represents a response received related to some response
Friendly wrapper around a 32-byte array representing a salt
Represents a secret key used with transport encryption and authentication
Represents a
Listener for incoming connections over TCPRepresents a
Transport that leverages a TCP streamRepresents a
Listener for incoming connections over a Unix socketRepresents a
Transport that leverages a Unix socketRepresents a request to send whose payload is bytes instead of a specific type
Represents a response to send whose payload is bytes instead of a specific type
Enums
Represents a codec that applies compression during encoding and decompression during decoding
of a frame’s item
Represents the level of compression to apply to data
Represents the type of compression for a
CompressionCodecRepresents the codec that encodes & decodes frames by encrypting/decrypting them
Represents the type of encryption for a
EncryptionCodecDefinition of the handshake to perform for a transport
Represents the host of a destination
Error encountered when attempting to parse bytes as an untyped request
Error encountered when attempting to parse bytes as an untyped response
Traits
Represents abstraction that implements specific encoder and decoder logic to transform an
arbitrary collection of bytes. This can be used to encrypt and authenticate bytes sent and
received by transports.
Interface that provides extensions to the codec interface
Represents a type that has a listen interface for receiving raw streams
Interface representing a connection that is reconnectable.
Interface representing a transport of raw bytes into and out of the system.
Type Definitions
Id of the connection
Represents a generic id type
Represents a frame whose lifetime is static
Represents a 16-byte (128-bit) secret key
Represents a 24-byte (192-bit) secret key
Represents a 32-byte (256-bit) secret key