Home
last modified time | relevance | path

Searched refs:DescriptorType (Results 1 – 11 of 11) sorted by relevance

/wasmtime-44.0.1/crates/wasi/src/p3/filesystem/
H A Dmod.rs255 impl From<crate::filesystem::DescriptorType> for types::DescriptorType { implementation
256 fn from(ty: crate::filesystem::DescriptorType) -> Self { in from()
258 crate::filesystem::DescriptorType::Unknown => Self::Other(None), in from()
259 crate::filesystem::DescriptorType::BlockDevice => Self::BlockDevice, in from()
260 crate::filesystem::DescriptorType::CharacterDevice => Self::CharacterDevice, in from()
261 crate::filesystem::DescriptorType::Directory => Self::Directory, in from()
262 crate::filesystem::DescriptorType::SymbolicLink => Self::SymbolicLink, in from()
263 crate::filesystem::DescriptorType::RegularFile => Self::RegularFile, in from()
268 impl From<cap_std::fs::FileType> for types::DescriptorType { implementation
H A Dhost.rs4 self, Advice, DescriptorFlags, DescriptorStat, DescriptorType, DirectoryEntry, ErrorCode,
613 ) -> FilesystemResult<DescriptorType> { in get_type() argument
/wasmtime-44.0.1/crates/wasi/src/p2/host/filesystem/
H A Dsync.rs49 ) -> FsResult<sync_filesystem::DescriptorType> { in get_type() argument
409 impl From<async_filesystem::DescriptorType> for sync_filesystem::DescriptorType { implementation
410 fn from(other: async_filesystem::DescriptorType) -> Self { in from()
411 use async_filesystem::DescriptorType; in from()
413 DescriptorType::RegularFile => Self::RegularFile, in from()
414 DescriptorType::Directory => Self::Directory, in from()
415 DescriptorType::BlockDevice => Self::BlockDevice, in from()
417 DescriptorType::Fifo => Self::Fifo, in from()
418 DescriptorType::Socket => Self::Socket, in from()
419 DescriptorType::SymbolicLink => Self::SymbolicLink, in from()
[all …]
/wasmtime-44.0.1/crates/wasi/src/p2/host/
H A Dfilesystem.rs73 ) -> FsResult<types::DescriptorType> { in get_type() argument
610 impl From<crate::filesystem::DescriptorType> for types::DescriptorType { implementation
611 fn from(ty: crate::filesystem::DescriptorType) -> Self { in from()
613 crate::filesystem::DescriptorType::Unknown => Self::Unknown, in from()
734 use types::DescriptorType; in descriptortype_from()
736 DescriptorType::Directory in descriptortype_from()
738 DescriptorType::SymbolicLink in descriptortype_from()
740 DescriptorType::BlockDevice in descriptortype_from()
742 DescriptorType::CharacterDevice in descriptortype_from()
744 DescriptorType::RegularFile in descriptortype_from()
[all …]
/wasmtime-44.0.1/crates/test-programs/src/bin/
H A Dp3_readdir.rs3 Descriptor, DescriptorFlags, DescriptorType, DirectoryEntry, OpenFlags, PathFlags,
65 assert!(matches!(entries[0].type_, DescriptorType::RegularFile)); in test_readdir()
67 assert!(matches!(entries[1].type_, DescriptorType::Directory)); in test_readdir()
/wasmtime-44.0.1/crates/wasi/src/
H A Dfilesystem.rs243 pub(crate) enum DescriptorType { enum
259 impl From<cap_std::fs::FileType> for DescriptorType { implementation
262 DescriptorType::Directory in from()
264 DescriptorType::SymbolicLink in from()
266 DescriptorType::BlockDevice in from()
268 DescriptorType::CharacterDevice in from()
270 DescriptorType::RegularFile in from()
272 DescriptorType::Unknown in from()
282 pub type_: DescriptorType,
553 pub(crate) async fn get_type(&self) -> Result<DescriptorType, ErrorCode> { in get_type() argument
[all …]
H A Dp1.rs1002 impl TryFrom<filesystem::DescriptorType> for types::Filetype {
1005 fn try_from(ty: filesystem::DescriptorType) -> Result<Self, Self::Error> { in try_from()
1007 filesystem::DescriptorType::RegularFile => Ok(types::Filetype::RegularFile), in try_from()
1008 filesystem::DescriptorType::Directory => Ok(types::Filetype::Directory), in try_from()
1009 filesystem::DescriptorType::BlockDevice => Ok(types::Filetype::BlockDevice), in try_from()
1010 filesystem::DescriptorType::CharacterDevice => Ok(types::Filetype::CharacterDevice), in try_from()
1012 filesystem::DescriptorType::Fifo => Ok(types::Filetype::Unknown), in try_from()
1015 filesystem::DescriptorType::Socket => { in try_from()
1018 filesystem::DescriptorType::SymbolicLink => Ok(types::Filetype::SymbolicLink), in try_from()
1019 filesystem::DescriptorType::Unknown => Ok(types::Filetype::Unknown), in try_from()
/wasmtime-44.0.1/crates/wasi-preview1-component-adapter/src/
H A Ddescriptors.rs53 descriptor_type: filesystem::DescriptorType::Directory, in get_read_stream()
81 descriptor_type: filesystem::DescriptorType::Directory, in get_write_stream()
405 descriptor_type: filesystem::DescriptorType::Directory, in get_file_with_error()
431 descriptor_type: filesystem::DescriptorType::Directory, in get_dir()
H A Dlib.rs800 filesystem::DescriptorType::Directory => { in fd_fdstat_get()
2538 impl From<filesystem::DescriptorType> for wasip1::Filetype {
2539 fn from(ty: filesystem::DescriptorType) -> wasip1::Filetype { in from()
2541 filesystem::DescriptorType::RegularFile => FILETYPE_REGULAR_FILE, in from()
2542 filesystem::DescriptorType::Directory => FILETYPE_DIRECTORY, in from()
2543 filesystem::DescriptorType::BlockDevice => FILETYPE_BLOCK_DEVICE, in from()
2546 filesystem::DescriptorType::Fifo => FILETYPE_UNKNOWN, in from()
2549 filesystem::DescriptorType::Socket => unreachable!(), in from()
2551 filesystem::DescriptorType::Unknown => FILETYPE_UNKNOWN, in from()
2640 descriptor_type: filesystem::DescriptorType,
[all …]
/wasmtime-44.0.1/crates/wasi/tests/all/p2/
H A Dapi.rs193 type_: filesystem::DescriptorType::Unknown, in p2_api_reactor()
/wasmtime-44.0.1/examples/min-platform/embedding/src/
H A Dwasi.rs683 ) -> Result<Result<wasi::filesystem::types::DescriptorType, wasi::filesystem::types::ErrorCode>> in get_type() argument