pub fn tcp_bind(
addr: impl ToSocketAddrs,
cap: &impl Has<NetBind>,
) -> Result<TcpListener, CapSecError>Expand description
Binds a TCP listener to the given address.
Requires NetBind permission.
pub fn tcp_bind(
addr: impl ToSocketAddrs,
cap: &impl Has<NetBind>,
) -> Result<TcpListener, CapSecError>Binds a TCP listener to the given address.
Requires NetBind permission.