Lines Matching refs:tempfile
9 use tempfile::NamedTempFile;
15 let mut tempfile = tempfile(); in basic_read() localVariable
16 tempfile.write_all(HELLO).unwrap(); in basic_read()
18 let mut file = File::open(tempfile.path()).await.unwrap(); in basic_read()
29 let tempfile = tempfile(); in basic_write() localVariable
31 let mut file = File::create(tempfile.path()).await.unwrap(); in basic_write()
36 let file = std::fs::read(tempfile.path()).unwrap(); in basic_write()
42 let tempfile = tempfile(); in basic_write_and_shutdown() localVariable
44 let mut file = File::create(tempfile.path()).await.unwrap(); in basic_write_and_shutdown()
49 let file = std::fs::read(tempfile.path()).unwrap(); in basic_write_and_shutdown()
55 let mut tempfile = tempfile(); in coop() localVariable
56 tempfile.write_all(HELLO).unwrap(); in coop()
59 let mut file = File::open(tempfile.path()).await.unwrap(); in coop()
78 fn tempfile() -> NamedTempFile { in tempfile() function
86 let tempfile = tempfile(); in unix_fd() localVariable
88 let file = File::create(tempfile.path()).await.unwrap(); in unix_fd()
96 let tempfile = tempfile(); in windows_handle() localVariable
98 let file = File::create(tempfile.path()).await.unwrap(); in windows_handle()