Searched refs:SyncFile (Results 1 – 2 of 2) sorted by relevance
14 use std::fs::{File as SyncFile, Metadata, Permissions};34 file: Arc<SyncFile>,102 pub fn new(file: SyncFile) -> File { in new()134 let file = async_op(|| SyncFile::open(path)).await?; in open()156 let file = async_op(|| SyncFile::create(path)).await?; in create()
362 void SyncFile(const std::string &dst) in SyncFile() function395 SyncFile(dest); // no way to get fd from ofstream, so reopen to sync this file in CopyFile()