Age | Commit message (Collapse) | Author |
|
This module has two functions;
set: set an alarm, and
cancel: cancels a previously set alarm.
|
|
Those are pretty useful for distributions to verify that crate actually work.
|
|
845: 0.11.0 pre r=asomers a=asomers
|
|
|
|
|
|
844: Bump version to 0.10.0 r=asomers a=asomers
|
|
|
|
843: Support arbitrary baud rates on BSDs r=asomers a=Susurrus
Closes #842
|
|
|
|
.map(drop) makes it seem like there is a need to drop the type at
that point when really all you're doing is trying to erase the
type information and return an empty tuple. So do that explicitly
instead of throwing drop in there.
|
|
|
|
835: Add socket options for IP_TRANSPARENT / BIND_ANY r=asomers a=justinlatimer
Add socket options for implementing a transparent proxy.
Sources:
[Linux](https://www.kernel.org/doc/Documentation/networking/tproxy.txt)
[OpenBSD](https://man.openbsd.org/setsockopt.2#SO_BINDANY)
[FreeBSD](https://www.freebsd.org/cgi/man.cgi?query=ip&manpath=FreeBSD+11.1-RELEASE)
Thanks!
|
|
841: Fix libc at 0.2.36 in preparation for release r=Susurrus a=asomers
|
|
|
|
820: Change AioCb to primarily use Bytes instead of Rc<[u8]> r=Susurrus a=asomers
`Rc<[u8]>` isn't a very good buffer type to use for aio. For one thing, it lacks interior mutability. For another, a single `Rc<[u8]>` can't be carved up into smaller buffers of the same type. `Bytes` and `BytesMut` fix both problems. This PR removes the ability to construct an `AioCb` from `Rc<[u8]>` and adds the ability to construct one from `Bytes`, `BytesMut`, or raw pointers (for consumers who need even more flexibility). At this stage, the PR has the following warts:
1. A hack is necessary to force small `Bytes` buffers to allocate on the heap. I plan to fix this with an enhancement to the bytes crate.
2. The `AioCb::buffer` method is necessary due to a deficiency in the tokio-core crate. Once I fix that, then only `AioCb::into_buffer`will need to be public.
|
|
|
|
|
|
It's not actually safe to read into an `Rc<[u8]>`. It only worked
because of a coincidental `unsafe` block. Replace that type with
`BytesMut` from the bytes crate. For consistency's sake, use `Bytes`
for writing too, and completely remove methods relating to `Rc<[u8]>`.
Note that the `AioCb` will actually own the `BytesMut` object. The
caller must call `into_buffer` to get it back once the I/O is complete.
Fixes #788
|
|
|
|
|
|
836: Remove return value from `pause` r=asomers a=Thomasdezeeuw
Follow up on https://github.com/nix-rust/nix/pull/829, since that repo is now unknown to GitHub.
|
|
`pause` will always return `-1` as a result and sets `errno` to
`EINTR`, which indicates that a signal was caught by the process. Since
this is the point of `pause` return an error here makes little sense.
Closes #827.
|
|
834: Expose mqueue functions for all supported OSes r=asomers a=asomers
|
|
|
|
813: Support `EtherAddr` and impl `Debug` for `InterfaceAddress/SockAddr` r=Susurrus a=LuoZijun
1. Add `EtherAddr` .
2. impl `Debug` for `InterfaceAddress` and `SockAddr`.
Closes #809
|
|
|
|
|
|
826: Add sigprocmask r=asomers a=Thomasdezeeuw
|
|
|
|
822: bump rand to 0.4 r=Susurrus a=ignatenkobrain
|
|
|
|
821: Fix typo in README r=asomers a=Aaron1011
|
|
|
|
818: Clippy cleanup r=Susurrus a=Susurrus
Various fixes for errors and warnings pointed out by clippy.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|