Module rama::net::stream

source ·
Expand description

Stream trait and related utilities.



  • Reader that can be used to chain two readers together.
  • Reader for reading from a heap-allocated bytes buffer.
  • An address that can be set by any service or middleware, to make connectors connect to the specified SocketAddr, instead of resolving it first (e.g. from the Request Uri)
  • Connected socket information.


  • Common information exposed by a Socket-like construct.
  • A stream is a type that implements AsyncRead, AsyncWrite and Send. This is specific to Rama and is directly linked to the supertraits of Tokio.