Expand description
Mesh IPC implementation based on channels.
This crate provides cross-process message-based communication over channels.
Modules§
- error
- Remotable errors.
- local_
node - message
- Implements the
Message
type. - payload
- pipe
- Implementation a unidirectional byte stream pipe over mesh.
- resource
- Mesh resource definitions.
- rpc
- Remote Procedure Call functionality.
Structs§
- Address
- A port address.
- Cancel
- A cancel notifier.
- Cancel
Context - A cancellation context.
- Cancelled
- Cell
- A cell containing a value that can be updated from a remote node.
- Cell
Updater - A type used to update the value in one or more
Cell
s. - Channel
Error - An error representing a failure of a channel.
- Deadline
- A point in time that acts as a deadline for an operation.
- Message
- A message on a port.
- NodeId
- A node ID.
- Oneshot
Receiver - The receiving half of a channel returned by
oneshot
. - Oneshot
Sender - The sending half of a channel returned by
oneshot
. - Owned
Message - A message on a port.
- PortId
- A port ID.
- Receiver
- The receiving half of a channel returned by
channel
. - Sender
- The sending half of a channel returned by
channel
. - Uuid
- A unique ID.
Enums§
- Cancel
Reason - Channel
Error Kind - The kind of channel failure.
- Recv
Error - An error when receiving a message from a channel.
- TryRecv
Error - An error when trying to receive a message from a channel.
Traits§
- Mesh
Payload - Trait for types that can be constructed as a
Message
.
Functions§
- cell
- Creates a new cell and its associated updater.
- channel
- Creates a new channel for sending messages of type
T
, returning the sender and receiver ends. - mpsc_
channel - Creates a new channel for sending messages of type
T
, returning the sender and receiver ends. - oneshot
- Creates a unidirection channel for sending a single value of type
T
.
Derive Macros§
- Mesh
Payload - The derive macro for
MeshPayload
.