Module message_io::network[][src]

Re-exports

pub use crate::adapter::SendStatus;

Structs

Endpoint

Information to identify the remote endpoint. The endpoint is used mainly as a connection identified.

Network

Network is in charge of managing all the connections transparently. It transforms raw data from the network into message events and vice versa, and manages the different adapters for you.

ResourceId

Unique identifier of a network resource. The identifier wrap 3 values,

Enums

NetEvent

Input network events.

RemoteAddr

An struct that contains a remote address. It can be Either, an address similar to SocketAddr or an Url used for protocols that needs more than the SocketAddr to get connected (e.g. WebSocket) It is usually used in crate::network::Network::connect() to specify the remote address.

ResourceType

Information about the type of resource

Transport

Enum to identified the underlying transport used. It can be passed to [crate::network::Network::connect()] and crate::network::Network::listen() methods to specify the transport used.

Traits

ToRemoteAddr