Module fdringbuf::fdbuf [] [src]

Ringbuffer with signalling via fd:s. You can use it with std::os::Pipe, but do try nix-rust's eventfds for slightly better performance! You will typically integrate with mio so you can wait for many fds at once, hence there are no functions that actually wait, just functions that give out the Fd to wait for.

Structs

Pipe
Receiver
Sender

Functions

channel

Creates a channel with fd signalling. Does not take ownership of the fds - they will not be closed when Sender and Receiver goes out of scope.