Function fdringbuf::fdbuf::channel [] [src]

pub fn channel<'a, T: Copy>(
    slice: &'a mut [u8],
    empty: Pipe,
    full: Pipe
) -> (Sender<'a, T>, Receiver<'a, T>)

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.