File: README.md

package info (click to toggle)
rust-cap-net-ext 3.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 152 kB
  • sloc: makefile: 4
file content (24 lines) | stat: -rw-r--r-- 1,167 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<div align="center">
  <h1><code>cap-net-ext</code></h1>

  <p>
    <strong>Extension traits for `TcpListener`, `UdpSocket`, `Pool`, etc.</strong>
  </p>

  <p>
    <a href="https://github.com/bytecodealliance/cap-std/actions?query=workflow%3ACI"><img src="https://github.com/bytecodealliance/cap-std/workflows/CI/badge.svg" alt="Github Actions CI Status" /></a>
    <a href="https://crates.io/crates/cap-net-ext"><img src="https://img.shields.io/crates/v/cap-net-ext.svg" alt="crates.io page" /></a>
    <a href="https://docs.rs/cap-net-ext"><img src="https://docs.rs/cap-net-ext/badge.svg" alt="docs.rs docs" /></a>
  </p>
</div>

The `cap-net-ext` crate provides extension traits adding extra features
to types such as [`TcpListener`], [`UdpSocket`], and [`Pool`].

It provides split-out operations corresponding to `socket`, `bind`, `listen`,
`accept`, and `connect`, and it exposes more options for enabling non-blocking
mode.

[`TcpListener`]: https://docs.rs/cap-std/latest/cap_std/net/struct.TcpListener.html
[`UdpSocket`]: https://docs.rs/cap-std/latest/cap_std/net/struct.UdpSocket.html
[`Pool`]: https://docs.rs/cap-std/latest/cap_std/net/struct.Pool.html