Struct toku_connection::Connection[][src]

pub struct Connection<H: Handler> { /* fields omitted */ }

Implementations

Spawn a new Connection that runs in a separate task. Returns a handle for sending to the Connection.

Arguments

  • tcp_stream - the tcp socket
  • handler - implements client or server specific logic
  • handshake_deadline - how long until we fail due to handshake not completing
  • ready_tx - a sender used to notify that the connection is ready for requests

Spawn a new Connection that runs in a separate task. Returns a handle for sending to the Connection.

Arguments

  • tcp_stream - the tcp socket
  • handler - implements client or server specific logic
  • handshake_deadline - how long until we fail due to handshake not completing
  • ready_tx - a sender used to notify that the connection is ready for requests

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.