diff options
Diffstat (limited to 'src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs')
-rw-r--r-- | src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs b/src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs new file mode 100644 index 000000000..f0e1890bb --- /dev/null +++ b/src/doc/book/listings/ch20-web-server/no-listing-02-impl-threadpool-new/src/lib.rs @@ -0,0 +1,7 @@ +pub struct ThreadPool; + +impl ThreadPool { + pub fn new(size: usize) -> ThreadPool { + ThreadPool + } +} |