fionread 0.1.1

The `fionread` IO control reads the number of bytes available to read from the file descriptor.
Documentation
  • Coverage
  • 100%
    4 out of 4 items documented1 out of 3 items with examples
  • Size
  • Source code size: 24.97 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.28 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 18s Average build duration of successful builds.
  • all releases: 18s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • notgull/fionread
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • notgull

fionread

crates.io Documentation Build Status

This crate provides an abstraction over the FIONREAD ioctl. This is used to tell how many bytes are in the read queue for a given socket.

This is an "unsafe-quarantine microcrate", since I want breadx to be able to be forbid(unsafe_code), and it seems a little silly to throw that away for a single syscall that probably won't be used that often in the common case. That's not to say that this may not be useful elsewhere.

MSRV is currently 1.46.0. This MSRV will not change without a minor version bump.

Licensing

Licensed under the MIT and Apache 2.0 licenses, just like Rust proper is.