Struct toku_connection::Connection [−][src]
pub struct Connection<H: Handler> { /* fields omitted */ }
Implementations
pub fn spawn_from_address(
address: SocketAddr,
handler: H,
handshake_deadline: Instant,
ready_tx: Option<Sender<&'static str>>
) -> Self
pub fn spawn_from_address(
address: SocketAddr,
handler: H,
handshake_deadline: Instant,
ready_tx: Option<Sender<&'static str>>
) -> Self
Spawn a new Connection
that runs in a separate task. Returns a handle for sending to
the Connection
.
Arguments
tcp_stream
- the tcp sockethandler
- implements client or server specific logichandshake_deadline
- how long until we fail due to handshake not completingready_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 sockethandler
- implements client or server specific logichandshake_deadline
- how long until we fail due to handshake not completingready_tx
- a sender used to notify that the connection is ready for requests
Trait Implementations
Auto Trait Implementations
impl<H> !RefUnwindSafe for Connection<H>
impl<H> Send for Connection<H>
impl<H> Sync for Connection<H>
impl<H> Unpin for Connection<H>
impl<H> !UnwindSafe for Connection<H>