Expand description
Async dial and accept over tokio-rustls, for any AsyncRead + AsyncWrite stream.
Structs§
Functions§
- accept
- Accepts a peer over
io, completing the handshake before returning. - accept_
with - Accepts a peer over
io, choosing the configuration from theClientHello(for example by its offered ALPN protocols), so one port can serve peers and other clients. - announce
crate::announceover an async stream.- announce_
as crate::announce_asover an async stream.- dial
- Dials a peer over
io, completing the handshake before returning. The server name sent isSERVER_NAME;dial_namedsends another. - dial_
named dialsendingnameas the server name, ascrate::dial_nameddoes.- pair_
accept crate::pair_acceptover an async stream; it waits for the operator without blocking the runtime, and sweepsdeskevery second meanwhile so expiry is seen.- pair_
dial crate::pair_dialover an async stream.- pair_
respond - Runs the responder’s side of pairing on a connection already accepted with
pair_server_config(for example chosen byaccept_withfor a client that offered the pairing ALPN), asidentity, for a client fromsource. The exchange waits at mostPairConfig::timeoutfrom this call. - receive_
announcement crate::receive_announcementover an async stream.