Home
last modified time | relevance | path

Searched refs:DescriptorFlags (Results 1 – 13 of 13) sorted by relevance

/wasmtime-44.0.1/crates/wasi/src/p3/filesystem/
H A Dmod.rs175 impl From<crate::filesystem::DescriptorFlags> for types::DescriptorFlags { implementation
176 fn from(flags: crate::filesystem::DescriptorFlags) -> Self { in from()
178 if flags.contains(crate::filesystem::DescriptorFlags::READ) { in from()
181 if flags.contains(crate::filesystem::DescriptorFlags::WRITE) { in from()
200 impl From<types::DescriptorFlags> for crate::filesystem::DescriptorFlags { implementation
201 fn from(flags: types::DescriptorFlags) -> Self { in from()
203 if flags.contains(types::DescriptorFlags::READ) { in from()
206 if flags.contains(types::DescriptorFlags::WRITE) { in from()
209 if flags.contains(types::DescriptorFlags::FILE_INTEGRITY_SYNC) { in from()
212 if flags.contains(types::DescriptorFlags::DATA_INTEGRITY_SYNC) { in from()
[all …]
H A Dhost.rs4 self, Advice, DescriptorFlags, DescriptorStat, DescriptorType, DirectoryEntry, ErrorCode,
604 ) -> FilesystemResult<DescriptorFlags> { in get_flags() argument
759 flags: DescriptorFlags, in open_at() argument
/wasmtime-44.0.1/crates/wasi/src/p2/host/filesystem/
H A Dsync.rs42 ) -> FsResult<sync_filesystem::DescriptorFlags> { in get_flags() argument
179 flags: sync_filesystem::DescriptorFlags, in open_at() argument
384 impl From<async_filesystem::DescriptorFlags> for sync_filesystem::DescriptorFlags { implementation
385 fn from(other: async_filesystem::DescriptorFlags) -> Self { in from()
387 if other.contains(async_filesystem::DescriptorFlags::READ) { in from()
390 if other.contains(async_filesystem::DescriptorFlags::WRITE) { in from()
486 impl From<sync_filesystem::DescriptorFlags> for async_filesystem::DescriptorFlags { implementation
487 fn from(other: sync_filesystem::DescriptorFlags) -> Self { in from()
489 if other.contains(sync_filesystem::DescriptorFlags::READ) { in from()
492 if other.contains(sync_filesystem::DescriptorFlags::WRITE) { in from()
[all …]
/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp3_readdir.rs3 Descriptor, DescriptorFlags, DescriptorType, DirectoryEntry, OpenFlags, PathFlags,
46 DescriptorFlags::READ | DescriptorFlags::WRITE, in test_readdir()
57 DescriptorFlags::empty(), in test_readdir()
82 DescriptorFlags::READ | DescriptorFlags::WRITE, in test_readdir_lots()
H A Dp2_cli_hostcall_fuel.rs47 DescriptorFlags::empty(), in read()
72 DescriptorFlags::empty(), in write()
85 DescriptorFlags::empty(), in write_stream()
101 DescriptorFlags::empty(), in write_stream_blocking()
186 DescriptorFlags::empty(), in write_zeroes()
202 DescriptorFlags::empty(), in write_stream_buffer_too_large()
218 DescriptorFlags::empty(), in write_zeroes_buffer_too_large()
234 DescriptorFlags::empty(), in read_file_big()
H A Dp3_file_write.rs3 Descriptor, DescriptorFlags, ErrorCode, OpenFlags, PathFlags,
40 DescriptorFlags::WRITE, in test_file_long_write()
72 DescriptorFlags::READ, in test_file_long_write()
94 DescriptorFlags::WRITE, in test_file_long_write()
103 DescriptorFlags::READ, in test_file_long_write()
H A Dp2_file_read_write.rs2 use test_programs::wasi::filesystem::types::{DescriptorFlags, OpenFlags, PathFlags};
14 DescriptorFlags::READ | DescriptorFlags::WRITE, in main()
H A Dp3_filesystem_file_read_write.rs2 use test_programs::p3::wasi::filesystem::types::{DescriptorFlags, OpenFlags, PathFlags};
20 DescriptorFlags::READ | DescriptorFlags::WRITE, in run()
/wasmtime-44.0.1/crates/wasi/src/p2/host/
H A Dfilesystem.rs64 ) -> FsResult<types::DescriptorFlags> { in get_flags() argument
295 flags: types::DescriptorFlags, in open_at() argument
526 impl From<crate::filesystem::DescriptorFlags> for types::DescriptorFlags { implementation
527 fn from(flags: crate::filesystem::DescriptorFlags) -> Self { in from()
529 if flags.contains(crate::filesystem::DescriptorFlags::READ) { in from()
532 if flags.contains(crate::filesystem::DescriptorFlags::WRITE) { in from()
551 impl From<types::DescriptorFlags> for crate::filesystem::DescriptorFlags { implementation
552 fn from(flags: types::DescriptorFlags) -> Self { in from()
554 if flags.contains(types::DescriptorFlags::READ) { in from()
557 if flags.contains(types::DescriptorFlags::WRITE) { in from()
[all …]
/wasmtime-44.0.1/crates/wasi/src/
H A Dfilesystem.rs133 pub(crate) struct DescriptorFlags: usize {
515 let mut out = DescriptorFlags::empty(); in get_flags()
520 out |= DescriptorFlags::DATA_INTEGRITY_SYNC; in get_flags()
523 out |= DescriptorFlags::FILE_INTEGRITY_SYNC; in get_flags()
532 flags |= DescriptorFlags::READ; in get_flags()
535 flags |= DescriptorFlags::WRITE; in get_flags()
543 flags |= DescriptorFlags::READ; in get_flags()
929 flags: DescriptorFlags, in open_at() argument
943 if flags.contains(DescriptorFlags::WRITE) { in open_at()
970 if flags.contains(DescriptorFlags::READ) { in open_at()
[all …]
H A Dp1.rs1495 if !flags.contains(filesystem::DescriptorFlags::READ) { in fd_fdstat_get()
1499 if !flags.contains(filesystem::DescriptorFlags::WRITE) { in fd_fdstat_get()
1502 if flags.contains(filesystem::DescriptorFlags::DATA_INTEGRITY_SYNC) { in fd_fdstat_get()
1505 if flags.contains(filesystem::DescriptorFlags::REQUESTED_WRITE_SYNC) { in fd_fdstat_get()
1508 if flags.contains(filesystem::DescriptorFlags::FILE_INTEGRITY_SYNC) { in fd_fdstat_get()
2173 let mut flags = filesystem::DescriptorFlags::empty(); in path_open()
2175 flags |= filesystem::DescriptorFlags::READ; in path_open()
2178 flags |= filesystem::DescriptorFlags::WRITE; in path_open()
2181 flags |= filesystem::DescriptorFlags::FILE_INTEGRITY_SYNC; in path_open()
2184 flags |= filesystem::DescriptorFlags::DATA_INTEGRITY_SYNC; in path_open()
[all …]
/wasmtime-44.0.1/crates/wasi-preview1-component-adapter/src/
H A Dlib.rs849 if !flags.contains(filesystem::DescriptorFlags::READ) { in fd_fdstat_get()
853 if !flags.contains(filesystem::DescriptorFlags::WRITE) { in fd_fdstat_get()
856 if flags.contains(filesystem::DescriptorFlags::DATA_INTEGRITY_SYNC) { in fd_fdstat_get()
859 if flags.contains(filesystem::DescriptorFlags::REQUESTED_WRITE_SYNC) { in fd_fdstat_get()
862 if flags.contains(filesystem::DescriptorFlags::FILE_INTEGRITY_SYNC) { in fd_fdstat_get()
2470 let mut flags = filesystem::DescriptorFlags::empty(); in descriptor_flags_from_flags()
2472 flags |= filesystem::DescriptorFlags::READ; in descriptor_flags_from_flags()
2475 flags |= filesystem::DescriptorFlags::WRITE; in descriptor_flags_from_flags()
2478 flags |= filesystem::DescriptorFlags::FILE_INTEGRITY_SYNC; in descriptor_flags_from_flags()
2481 flags |= filesystem::DescriptorFlags::DATA_INTEGRITY_SYNC; in descriptor_flags_from_flags()
[all …]
/wasmtime-44.0.1/examples/min-platform/embedding/src/
H A Dwasi.rs676 … ) -> Result<Result<wasi::filesystem::types::DescriptorFlags, wasi::filesystem::types::ErrorCode>> in get_flags() argument
785 _: wasi::filesystem::types::DescriptorFlags, in open_at() argument