Expand description
Exposes the connection runtime module.
§Examples
ⓘ
use pharos_native::runtime::connection;§Related
crate::runtimefor sibling modules in the same crate.
Structs§
- Native
Connection - Native connection wrapper used by the runtime for TCP and Unix transports.
Enums§
- Native
Transport Type - Transport families supported by the native connection wrapper.
Functions§
- connection_
accept_ next - Accepts the next TCP connection from a native listener.
- connection_
apply_ timeouts - Applies bounded read and write timeouts to a native connection.
- connection_
close - Closes one connection and clears its owned stream.
- connection_
close_ socket - Closes the underlying socket transport.
- connection_
detect_ transport - Returns the transport kind currently attached to a connection.
- connection_
flush - Performs connection flush.
- connection_
format_ sockaddr - Formats endpoint text without exposing platform socket handles or FFI state.
- connection_
init - Initializes a metadata-only connection before a transport is attached.
- connection_
local_ info - Performs connection local info.
- connection_
peer_ info - Performs connection peer info.
- connection_
populate_ endpoint_ info - Refreshes peer and local endpoint metadata from the attached stream.
- connection_
read - Reads at most one caller-provided buffer from the attached transport.
- connection_
reset - Resets a connection to an empty metadata-only state.
- connection_
send - Sends the complete buffer over the attached transport, retrying short writes.
- connection_
shutdown - Performs connection shutdown.
- connection_
shutdown_ socket - Shuts down both directions of the attached socket and preserves close semantics.
- connection_
transport_ type - Performs connection transport type.
- connection_
transport_ type_ name - Performs connection transport type name.
- connection_
write - Writes one complete caller-provided buffer to the attached transport.