Expand description
Unified transport layer for Moirai concurrency library.
This module provides transport abstractions that work across different communication boundaries: threads, processes, and machines. It builds on top of the core channel primitives to provide location-transparent messaging.
§Design Principles
- Location transparency: same API for local and remote communication
- Zero-copy optimization for local transport
- Pluggable transport backends (in-memory, IPC, network)
- Integration with Moirai scheduler for optimal performance
Re-exports§
pub use safe_channel::ArchiveSerialize;pub use safe_channel::ArchiveView;pub use safe_channel::ArchivedMessage;pub use safe_channel::ArchivedUniversalReceiver;pub use safe_channel::ArchivedUniversalSender;
Modules§
- payload
- Typed ownership regions for transport archive payload bytes.
- process
- OS process lifecycle primitives, owned pipes, and bounded cleanup.
- remote_
task - Remote task envelopes over transport-owned bytes.
- safe_
channel - Zero-copy archive channel helpers for transport boundaries.
Structs§
- Connection
Manager - Tracks the connection state of remote/local endpoints.
- InMemory
Transport - In-memory transport for local communication
- IpcTransport
- Shared-memory same-machine IPC transport (Unix/Windows only).
Shared-memory IPC transport. Holds one
SharedQueuehandle per segment name, created lazily on first use. - Message
Router - Topic-based pub/sub router that delivers published messages to every
subscribed
Addressover a shared transport. - Network
Listener - A bound endpoint for receiving one length-prefixed network frame.
- Network
Transport - Network transport for distributed communication.
- Receiver
- Receiver half of MPMC channel
- Remote
Address - Remote address for cross-machine communication
- Sender
- Sender half of MPMC channel
- Transport
Manager - Transport manager that routes messages to appropriate transport
Enums§
- Address
- Address for identifying communication endpoints
- Connection
State - Observable state of a tracked connection.
- Transport
Error - Error types for channel operations
Traits§
- Transport
- Transport trait for different communication mechanisms
Type Aliases§
- Transport
Result - Result type for transport operations