Skip to main content

Crate polybox

Crate polybox 

Source
Expand description

Message-passing abstractions to make working with channels and actors a more seamless experience.

See GitHub for more information.

Modules§

errors
inboxes
oneshot
type_sets
Crates.io Documentation

Structs§

BoxedPayload
Holds a MessageSpecifier::Payload
DynInbox
A dynamic inbox that can accept messages of any type, as long as they are part of the specified set.
FireAndForget
A marker type for fire-and-forget messages.
Request
A marker type for request messages.

Traits§

DynPolyBox
Object-safe sub-trait of PolyBox, allowing for dynamic dispatch.
FromPayload
Interface
An interface defines the set of messages that can be sent to a given actor. This is usually derived on an enum using the #[derive(Interface)] macro.
Message
A trait that must be implemented for all types that are sent as messages.
MessageExt
A trait that extends Message with some helper methods.
MessageReply
A trait for types that can be used as the output of a Message.
MessageSpecifier
A trait for types that can be used to specify the kind of a Message.
PolyBox
A trait that allows for conversions to DynInbox.
PolyboxExt
A trait that extends PolyBox with some helper methods.
Sends
Implemented for inboxes that can send messages of type T.
SendsExt
Extension trait for Sends.
TryIntoPayload

Type Aliases§

Output
A helper type for the output of a Message.
Payload
A helper type for the payload of a Message.
Reply
A helper type for the reply of a Message.

Derive Macros§

Interface
Derives the Interface trait for an enum, allowing it to be used as a message interface in the Polybox framework.
Message
Derives the Message trait for a struct, allowing it to be used as a message in the Polybox framework.