about
11/29/2022
RustLibraryDemos Repo
RustLibraryDemos Repository
Demos for convert, collections, io, fs, net, error, thread, process
Quick Status
Contents:
-
std::collections: collections_echo Construct collection, pass to generic echo function, iterate over contents, and return again. -
std::iterator: iterator_echo Construct collection, iterate with several different adapters. -
std::io: io_echo Read from std::io::stdin and echo back to std::io::stdout. -
std::fs: fs_echo Create file, write message to it, open file, and read message. -
std::net: net_echo Create simple messages and send over TcpStream. -
std::thread: thread_shared Two child threads mutate shared String. -
std::sync: sync_demo Prototype for blocking queue using shared queue with locks and condition variable. -
std::sync: blocking_queue_demo Builds upon the prototype, above, to make a solid BlockingQueue abstraction. -
std::mpsc: mpsc_demo Demonstrate a very simple blocking queue using the mpsc channel. Almost all the functionality is provided by mpsc. -
std::process: process_demos Spawning child process on either Windows or Linux -
std::time: time_demo Simple demo using now and elapsed to measure time taken to sleep, calculate, and print to console.