Home
last modified time | relevance | path

Searched defs:File (Results 1 – 21 of 21) sorted by relevance

/wasmtime-44.0.1/crates/wasi-common/src/sync/
H A Dfile.rs15 pub struct File(cap_std::fs::File); struct
17 impl File { impl
24 impl WasiFile for File { implementation
163 impl AsHandle for File { implementation
172 impl AsRawHandleOrSocket for File { implementation
183 impl AsFd for File { implementation
H A Ddir.rs16 File(File), enumerator
/wasmtime-44.0.1/crates/wasi-common/src/tokio/
H A Dfile.rs14 pub struct File(crate::sync::file::File); struct
16 impl File { impl
/wasmtime-44.0.1/crates/wasi/src/
H A Dfilesystem.rs450 File(File), enumerator
455 pub(crate) fn file(&self) -> Result<&File, ErrorCode> { in file()
660 pub struct File { struct
666 pub file: Arc<cap_std::fs::File>, argument
670 pub perms: FilePerms, argument
680 impl File { argument
682 file: cap_std::fs::File, in new()
732 pub(crate) fn as_blocking_file(&self) -> Option<&cap_std::fs::File> { in as_blocking_file()
742 pub(crate) fn as_file(&self) -> &Arc<cap_std::fs::File> { in as_file()
1020 File(cap_std::fs::File), in open_at() enumerator
H A Dp1.rs242 struct File { struct
244 fd: Resource<filesystem::Descriptor>,
247 position: Arc<AtomicU64>,
250 append: bool,
255 blocking_mode: BlockingMode,
342 File(File), enumerator
511 fn get_file(&self, fd: types::Fd) -> Result<&File> { in get_file()
521 fn get_file_mut(&mut self, fd: types::Fd) -> Result<&mut File> { in get_file_mut()
535 fn get_seekable(&self, fd: types::Fd) -> Result<&File> { in get_seekable()
1535 let File { in fd_fdstat_set_flags() localVariable
[all …]
/wasmtime-44.0.1/crates/wasi-preview1-component-adapter/src/
H A Ddescriptors.rs110 File(File), enumerator
400 pub fn get_file_with_error(&self, fd: Fd, error: Errno) -> Result<&File, Errno> { in get_file_with_error()
420 pub fn get_file(&self, fd: Fd) -> Result<&File, Errno> { in get_file()
425 pub fn get_dir(&self, fd: Fd) -> Result<&File, Errno> { in get_dir()
446 pub fn get_seekable_file(&self, fd: Fd) -> Result<&File, Errno> { in get_seekable_file()
H A Dlib.rs2635 pub struct File { struct
2643 position: Cell<filesystem::Filesize>, argument
2658 impl File { argument
/wasmtime-44.0.1/crates/wasi/src/p2/
H A Dfilesystem.rs78 pub fn new(file: &File, position: u64) -> Self { in new()
86 fn blocking_read(file: &cap_std::fs::File, offset: u64, size: usize) -> ReadState { in blocking_read()
225 pub fn write_at(file: &File, position: u64) -> Self { in write_at()
242 file: &cap_std::fs::File, in blocking_write()
/wasmtime-44.0.1/crates/wasmtime/src/profiling_agent/
H A Dperfmap.rs34 fn make_line(writer: &mut File, name: &str, code: &[u8]) -> io::Result<()> { in make_line()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/unix/
H A Dvm.rs160 pub(super) fn as_file(&self) -> &File { in as_file()
H A Dmmap.rs12 pub fn open_file_for_mmap(path: &Path) -> Result<File> { in open_file_for_mmap()
/wasmtime-44.0.1/crates/jit-debug/src/
H A Dperf_jitdump.rs273 pub fn file(&self) -> &File { in file()
278 pub fn file_mut(&mut self) -> &mut File { in file_mut()
/wasmtime-44.0.1/crates/wasi/src/p3/filesystem/
H A Dhost.rs39 ) -> FilesystemResult<&'a File> { in get_file()
54 fn get_file(&self, fd: &Resource<Descriptor>) -> FilesystemResult<File>; in get_file()
71 fn get_file(&self, fd: &Resource<Descriptor>) -> FilesystemResult<File> { in get_file()
376 fn new_at(file: File, offset: u64, result: oneshot::Sender<Result<(), ErrorCode>>) -> Self { in new_at()
386 fn new_append(file: File, result: oneshot::Sender<Result<(), ErrorCode>>) -> Self { in new_append()
421 fn write(&self, file: &cap_std::fs::File, bytes: &[u8]) -> io::Result<usize> { in write()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/miri/
H A Dmmap.rs18 pub fn open_file_for_mmap(path: &Path) -> Result<File> { in open_file_for_mmap()
/wasmtime-44.0.1/crates/c-api/src/
H A Dwasi.rs25 unsafe fn open_file(path: *const c_char) -> Option<File> { in open_file()
29 unsafe fn create_file(path: *const c_char) -> Option<File> { in create_file()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/custom/
H A Dmmap.rs11 pub fn open_file_for_mmap(_path: &Path) -> Result<File> { in open_file_for_mmap()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/sys/windows/
H A Dmmap.rs20 pub fn open_file_for_mmap(path: &Path) -> Result<File> { in open_file_for_mmap()
/wasmtime-44.0.1/crates/wasmtime/src/runtime/vm/
H A Dmmap_vec.rs250 pub fn original_file(&self) -> Option<&Arc<File>> { in original_file()
H A Dmmap.rs214 pub fn original_file(&self) -> Option<&Arc<File>> { in original_file()
/wasmtime-44.0.1/crates/wasi-common/src/
H A Ddir.rs8 File(Box<dyn WasiFile>), enumerator
/wasmtime-44.0.1/crates/wasmtime/src/
H A Dengine.rs921 file: File, in load_code_file()