Crates.io | fionread |
lib.rs | fionread |
version | 0.1.1 |
source | src |
created_at | 2022-02-16 21:23:17.800342 |
updated_at | 2022-06-30 16:32:48.61753 |
description | The `fionread` IO control reads the number of bytes available to read from the file descriptor. |
homepage | https://notgull.github.io/fionread#readme |
repository | https://github.com/notgull/fionread |
max_upload_size | |
id | 533588 |
size | 22,033 |
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.
Licensed under the MIT and Apache 2.0 licenses, just like Rust proper is.