Available on crate feature
managed-pts
only.Expand description
Launching pluggable transport binaries and communicating with them.
This module contains utilities to launch pluggable transports supporting pt-spec.txt version 1, and communicate with them in order to specify configuration parameters and receive updates as to the current state of the PT.
Modules§
- sealed 🔒
- Sealed trait to protect private types and default trait implementations
Structs§
- Pluggable
Client Transport - A pluggable transport binary in a child process.
- Pluggable
Server Transport - A pluggable transport server binary in a child process.
- PtClient
Parameters - Parameters passed only to a pluggable transport client.
- PtClient
Parameters Builder - Builder for
PtClientParameters
. - PtCommon
Parameters - Common parameters passed to a pluggable transport.
- PtCommon
Parameters Builder - Builder for
PtCommonParameters
. - PtServer
Parameters - Parameters passed only to a pluggable transport server.
- PtServer
Parameters Builder - Builder for
PtServerParameters
. - PtStatus
- An arbitrary key/value status update from a pluggable transport.
Enums§
- PtClient
Parameters Builder Error - Error type for PtClientParametersBuilder
- PtCommon
Parameters Builder Error - Error type for PtCommonParametersBuilder
- PtMessage
- A message sent from a pluggable transport child process.
- PtServer
Parameters Builder Error - Error type for PtServerParametersBuilder
Constants§
- GRACEFUL_
EXIT_ 🔒TIME - Amount of time we give a pluggable transport child process to exit gracefully.
- PT_
START_ 🔒TIMEOUT - Default timeout for PT binary startup.
- PT_
STDIO_ 🔒BUFFER - Size for the buffer storing pluggable transport stdout lines.
Traits§
- Pluggable
Transport - Common functionality implemented to allow code reuse
Functions§
- parse_
one_ 🔒smethod_ arg - Chomp one key/value pair off a list of smethod args. Returns (k, v, unparsed rest of string). Will also chomp the comma at the end, if there is one.
- parse_
one_ 🔒value - Parse a value (something on the RHS of an =), which could be a CString as defined by control-spec.txt §2. Returns (value, unparsed rest of string).