CPPStream wrapper for rust