Crate mesh

Source
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.
CancelContext
A cancellation context.
Cancelled
Cell
A cell containing a value that can be updated from a remote node.
CellUpdater
A type used to update the value in one or more Cells.
ChannelError
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.
OneshotReceiver
The receiving half of a channel returned by oneshot.
OneshotSender
The sending half of a channel returned by oneshot.
OwnedMessage
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§

CancelReason
ChannelErrorKind
The kind of channel failure.
RecvError
An error when receiving a message from a channel.
TryRecvError
An error when trying to receive a message from a channel.

Traits§

MeshPayload
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§

MeshPayload
The derive macro for MeshPayload.