Module Types

Module Types 

Source
Expand description

§Connection Types (IPC Connection)

§RESPONSIBILITIES

This module defines the core data structures for connection management in the IPC layer, including connection handles, statistics, and status tracking.

§ARCHITECTURAL ROLE

This module provides the type definitions used throughout the connection management subsystem, ensuring type safety and consistency.

§KEY COMPONENTS

  • ConnectionHandle: Represents an active connection with health tracking
  • ConnectionStats: Statistics about the connection pool
  • ConnectionStatus: Connection health status

§ERROR HANDLING

N/A - This is a data definition module.

§LOGGING

N/A - Status changes are logged by the ConnectionManager.

§PERFORMANCE CONSIDERATIONS

  • ConnectionHandle uses health scoring for efficient monitoring
  • Stats are calculated on-demand to avoid overhead
  • Simple structures minimize memory footprint

§TODO

  • Add connection metadata (protocol, endpoint)
  • Implement connection duration tracking
  • Add connection quality metrics
  • Support connection tagging for categorization

Structs§

ConnectionHandle
Handle representing an active connection
ConnectionStats
Connection statistics for monitoring

Enums§

ConnectionStatus
Connection status

Traits§

SystemTimeExt 🔒
Helper trait to get duration since UNIX epoch for SystemTime