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§
- Plain struct used as a returned value of
Remote::connect_with()
- Plain struct used as a returned value of
Local::listen_with()
Enums§
- Used as a parameter callback in
Local::accept()
- Returned as a result of
Remote::receive()
- The following represents the posible status that
crate::network::NetworkController::send()
call can return. The library do not encourage to perform the check of this status for eachsend()
call, only in that cases where you need extra information about how the sending method was.
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.