Module owned

Source
Expand description

“Owned” sockets

“Owned” sockets require T: 'static, and store messages in their deserialized T form, rather as serialized bytes.

This module contains versions of the raw_owned socket types that use a specific kind of storage.

Currently we support:

  • single sockets, which use an Option<T> for storage, suitable for one-shot responses
  • stack_vec sockets, which use a heapless Deque for storage, and have a const-generic size bound
  • std_bounded socket, which use a std VecDeque with an upper limit on the capacity

Modules§

single
stack_vec
std_bounded