Searched defs:File (Results 1 – 2 of 2) sorted by relevance
33 pub struct File { struct34 file: Arc<SyncFile>, argument35 inner: Mutex<FileInner>, argument95 impl File { impl97 pub fn new(file: SyncFile) -> File { in new()126 pub async fn open<P: AsRef<Path>>(path: P) -> io::Result<File> { in open()148 pub async fn create<P: AsRef<Path>>(path: P) -> io::Result<File> { in create()334 pub async fn try_clone(&self) -> io::Result<File> { in try_clone()341 impl AsyncSeek for File { implementation393 impl AsyncRead for File { implementation[all …]
295 pub async fn open<P: AsRef<Path>>(&self, path: P) -> io::Result<File> { in open()