Searched refs:StdFile (Results 1 – 2 of 2) sorted by relevance
24 use std::fs::File as StdFile;172 struct ArcFile(Arc<StdFile>);193 raw: Arc<StdFile>,244 let raw = Arc::new(unsafe { StdFile::from_raw_handle(io.into_raw_handle()) }); in stdio()249 fn convert_to_file(child_stdio: ChildStdio) -> io::Result<StdFile> { in convert_to_file() argument260 fn duplicate_handle<T: AsRawHandle>(io: &T) -> io::Result<StdFile> { in duplicate_handle() argument281 Ok(StdFile::from_raw_handle(dup_handle as _)) in duplicate_handle()
22 use super::mocks::MockFile as StdFile;30 use std::fs::File as StdFile;90 std: Arc<StdFile>,153 let std = asyncify(|| StdFile::open(path)).await?; in open()191 let std_file = asyncify(move || StdFile::create(path)).await?; in create()276 pub fn from_std(std: StdFile) -> File { in from_std()486 pub async fn into_std(mut self) -> StdFile { in into_std() argument509 pub fn try_into_std(mut self) -> Result<StdFile, Self> { in try_into_std() argument874 impl From<StdFile> for File {875 fn from(std: StdFile) -> Self { in from()[all …]