Module message_io::network::adapter

source ·
Expand description

Module that specify the pattern to follow to create adapters. This module is not part of the public API itself, it must be used from the internals to build new adapters.

Structs§

Enums§

Traits§

  • High level trait to represent an adapter for a transport protocol. The adapter is only used to identify the resources of your adapter.
  • The resource used to represent a local listener. It usually is a wrapper over a socket/listener.
  • The resource used to represent a remote. It usually is a wrapper over a socket/stream.
  • A Resource is defined as an object that can return a mutable reference to a Source. Source is the trait that mio uses to register in the poll in order to wake up asynchronously from events. Your Remote and Local entities must implement Resource.