Skip to main content

Module transport

Module transport 

Source
Expand description

Platform transports and shared client connection primitives.

Modules§

android
Android adb am broadcast transport (bd-17026f).
relay
iOS/watch outbound relay transport (bd-a5452f).
tcp
Direct bare-NDJSON-over-TCP transport (config Transport::Tcp, bd-bfb732).

Constants§

CONNECT_TIMEOUT
Default bounded connect timeout for outbound cast/send TCP connections.

Functions§

connect_bounded
Resolve addr and connect with a bounded per-resolved-address timeout, returning the first address that connects. A drop-in for TcpStream::connect (same io::Result<TcpStream> shape) that never blocks past timeout per address, so a cast to an unreachable endpoint fails fast instead of hanging on the OS default connect timeout.