pub fn tcp_connect(
addr: impl ToSocketAddrs,
cap: &impl Has<NetConnect>,
) -> Result<TcpStream, CapSecError>Expand description
Opens a TCP connection to the given address.
Requires NetConnect permission.
pub fn tcp_connect(
addr: impl ToSocketAddrs,
cap: &impl Has<NetConnect>,
) -> Result<TcpStream, CapSecError>Opens a TCP connection to the given address.
Requires NetConnect permission.