Enum wasmer_wasix_types::wasi::SockProto
source · #[repr(u16)]pub enum SockProto {
Show 264 variants
Ip = 0,
Icmp = 1,
Igmp = 2,
ProtoThree = 3,
Ipip = 4,
ProtoFive = 5,
Tcp = 6,
ProtoSeven = 7,
Egp = 8,
ProtoNine = 9,
ProtoTen = 10,
ProtoEleven = 11,
Pup = 12,
ProtoThirteen = 13,
ProtoFourteen = 14,
ProtoFifteen = 15,
ProtoSixteen = 16,
Udp = 17,
ProtoEighteen = 18,
ProtoNineteen = 19,
ProtoTwenty = 20,
ProtoTwentyone = 21,
Idp = 22,
ProtoTwentythree = 23,
ProtoTwentyfour = 24,
ProtoTwentyfive = 25,
ProtoTwentysix = 26,
ProtoTwentyseven = 27,
ProtoTwentyeight = 28,
ProtoTp = 29,
ProtoThirty = 30,
ProtoThirtyone = 31,
ProtoThirtytwo = 32,
Dccp = 33,
ProtoThirtyfour = 34,
ProtoThirtyfive = 35,
ProtoThirtysix = 36,
ProtoThirtyseven = 37,
ProtoThirtyeight = 38,
ProtoThirtynine = 39,
ProtoFourty = 40,
Ipv6 = 41,
ProtoFourtytwo = 42,
Routing = 43,
Fragment = 44,
ProtoFourtyfive = 45,
Rsvp = 46,
Gre = 47,
ProtoFourtyeight = 48,
ProtoFourtynine = 49,
Esp = 50,
Ah = 51,
ProtoFiftytwo = 52,
ProtoFiftythree = 53,
ProtoFiftyfour = 54,
ProtoFiftyfive = 55,
ProtoFiftysix = 56,
ProtoFiftyseven = 57,
Icmpv6 = 58,
None = 59,
Dstopts = 60,
ProtoSixtyone = 61,
ProtoSixtytwo = 62,
ProtoSixtythree = 63,
ProtoSixtyfour = 64,
ProtoSixtyfive = 65,
ProtoSixtysix = 66,
ProtoSixtyseven = 67,
ProtoSixtyeight = 68,
ProtoSixtynine = 69,
ProtoSeventy = 70,
ProtoSeventyone = 71,
ProtoSeventytwo = 72,
ProtoSeventythree = 73,
ProtoSeventyfour = 74,
ProtoSeventyfive = 75,
ProtoSeventysix = 76,
ProtoSeventyseven = 77,
ProtoSeventyeight = 78,
ProtoSeventynine = 79,
ProtoEighty = 80,
ProtoEightyone = 81,
ProtoEightytwo = 82,
ProtoEightythree = 83,
ProtoEightyfour = 84,
ProtoEightyfive = 85,
ProtoEightysix = 86,
ProtoEightyseven = 87,
ProtoEightyeight = 88,
ProtoEightynine = 89,
ProtoNinety = 90,
ProtoNinetyone = 91,
Mtp = 92,
ProtoNinetythree = 93,
Beetph = 94,
ProtoNinetyfive = 95,
ProtoNinetysix = 96,
ProtoNineetyseven = 97,
Encap = 98,
ProtoNinetynine = 99,
ProtoOnehundred = 100,
ProtoOnehundredandone = 101,
ProtoOnehundredandtwo = 102,
Pim = 103,
ProtoOnehundredandfour = 104,
ProtoOnehundredandfive = 105,
ProtoOnehundredandsix = 106,
ProtoOnehundredandseven = 107,
Comp = 108,
ProtoOnehundredandnine = 109,
ProtoOnehundredandten = 110,
ProtoOnehundredandeleven = 111,
ProtoOnehundredandtwelve = 112,
ProtoOnehundredandthirteen = 113,
ProtoOnehundredandfourteen = 114,
ProtoOnehundredandfifteen = 115,
ProtoOnehundredandsixteen = 116,
ProtoOnehundredandseventeen = 117,
ProtoOnehundredandeighteen = 118,
ProtoOnehundredandnineteen = 119,
ProtoOnehundredandtwenty = 120,
ProtoOnehundredandtwentyone = 121,
ProtoOnehundredandtwentytwo = 122,
ProtoOnehundredandtwentythree = 123,
ProtoOnehundredandtwentyfour = 124,
ProtoOnehundredandtwentyfive = 125,
ProtoOnehundredandtwentysix = 126,
ProtoOnehundredandtwentyseven = 127,
ProtoOnehundredandtwentyeight = 128,
ProtoOnehundredandtwentynine = 129,
ProtoOnehundredandthirty = 130,
ProtoOnehundredandthirtyone = 131,
Sctp = 132,
ProtoOnehundredandthirtythree = 133,
ProtoOnehundredandthirtyfour = 134,
Mh = 135,
Udplite = 136,
Mpls = 137,
ProtoOnehundredandthirtyeight = 138,
ProtoOnehundredandthirtynine = 139,
ProtoOnehundredandfourty = 140,
ProtoOnehundredandfourtyone = 141,
ProtoOnehundredandfourtytwo = 142,
Ethernet = 143,
ProtoOnehundredandfourtyfour = 144,
ProtoOnehundredandfourtyfive = 145,
ProtoOnehundredandfourtysix = 146,
ProtoOnehundredandfourtyseven = 147,
ProtoOnehundredandfourtyeight = 148,
ProtoOnehundredandfourtynine = 149,
ProtoOnehundredandfifty = 150,
ProtoOnehundredandfiftyone = 151,
ProtoOnehundredandfiftytwo = 152,
ProtoOnehundredandfiftythree = 153,
ProtoOnehundredandfiftyfour = 154,
ProtoOnehundredandfiftyfive = 155,
ProtoOnehundredandfiftysix = 156,
ProtoOnehundredandfiftyseven = 157,
ProtoOnehundredandfiftyeight = 158,
ProtoOnehundredandfiftynine = 159,
ProtoOnehundredandsixty = 160,
ProtoOnehundredandsixtyone = 161,
ProtoOnehundredandsixtytwo = 162,
ProtoOnehundredandsixtythree = 163,
ProtoOnehundredandsixtyfour = 164,
ProtoOnehundredandsixtyfive = 165,
ProtoOnehundredandsixtysix = 166,
ProtoOnehundredandsixtyseven = 167,
ProtoOnehundredandsixtyeight = 168,
ProtoOnehundredandsixtynine = 169,
ProtoOnehundredandseventy = 170,
ProtoOnehundredandseventyone = 171,
ProtoOnehundredandseventytwo = 172,
ProtoOnehundredandseventythree = 173,
ProtoOnehundredandseventyfour = 174,
ProtoOnehundredandseventyfive = 175,
ProtoOnehundredandseventysix = 176,
ProtoOnehundredandseventyseven = 177,
ProtoOnehundredandseventyeight = 178,
ProtoOnehundredandseventynine = 179,
ProtoOnehundredandeighty = 180,
ProtoOnehundredandeightyone = 181,
ProtoOnehundredandeightytwo = 182,
ProtoOnehundredandeightythree = 183,
ProtoOnehundredandeightyfour = 184,
ProtoOnehundredandeightyfive = 185,
ProtoOnehundredandeightysix = 186,
ProtoOnehundredandeightyseven = 187,
ProtoOnehundredandeightyeight = 188,
ProtoOnehundredandeightynine = 189,
ProtoOnehundredandninety = 190,
ProtoOnehundredandninetyone = 191,
ProtoOnehundredandninetytwo = 192,
ProtoOnehundredandninetythree = 193,
ProtoOnehundredandninetyfour = 194,
ProtoOnehundredandninetyfive = 195,
ProtoOnehundredandninetysix = 196,
ProtoOnehundredandninetyseven = 197,
ProtoOnehundredandninetyeight = 198,
ProtoOnehundredandninetynine = 199,
ProtoTwohundred = 200,
ProtoTwohundredandone = 201,
ProtoTwohundredandtwo = 202,
ProtoTwohundredandthree = 203,
ProtoTwohundredandfour = 204,
ProtoTwohundredandfive = 205,
ProtoTwohundredandsix = 206,
ProtoTwohundredandseven = 207,
ProtoTwohundredandeight = 208,
ProtoTwohundredandnine = 209,
ProtoTwohundredandten = 210,
ProtoTwohundredandeleven = 211,
ProtoTwohundredandtwelve = 212,
ProtoTwohundredandthirteen = 213,
ProtoTwohundredandfourteen = 214,
ProtoTwohundredandfifteen = 215,
ProtoTwohundredandsixteen = 216,
ProtoTwohundredandseventeen = 217,
ProtoTwohundredandeighteen = 218,
ProtoTwohundredandnineteen = 219,
ProtoTwohundredandtwenty = 220,
ProtoTwohundredandtwentyone = 221,
ProtoTwohundredandtwentytwo = 222,
ProtoTwohundredandtwentythree = 223,
ProtoTwohundredandtwentyfour = 224,
ProtoTwohundredandtwentyfive = 225,
ProtoTwohundredandtwentysix = 226,
ProtoTwohundredandtwentyseven = 227,
ProtoTwohundredandtwentyeight = 228,
ProtoTwohundredandtwentynine = 229,
ProtoTwohundredandthirty = 230,
ProtoTwohundredandthirtyone = 231,
ProtoTwohundredandthirtytwo = 232,
ProtoTwohundredandthirtythree = 233,
ProtoTwohundredandthirtyfour = 234,
ProtoTwohundredandthirtyfive = 235,
ProtoTwohundredandthirtysix = 236,
ProtoTwohundredandthirtyseven = 237,
ProtoTwohundredandthirtyeight = 238,
ProtoTwohundredandthirtynine = 239,
ProtoTwohundredandfourty = 240,
ProtoTwohundredandfourtyone = 241,
ProtoTwohundredandfourtytwo = 242,
ProtoTwohundredandfourtythree = 243,
ProtoTwohundredandfourtyfour = 244,
ProtoTwohundredandfourtyfive = 245,
ProtoTwohundredandfourtysix = 246,
ProtoTwohundredandfourtyseven = 247,
ProtoTwohundredandfourtyeight = 248,
ProtoTwohundredandfourtynine = 249,
ProtoTwohundredandfifty = 250,
ProtoTwohundredandfiftyone = 251,
ProtoTwohundredandfiftytwo = 252,
ProtoTwohundredandfiftythree = 253,
ProtoTwohundredandfiftyfour = 254,
ProtoRaw = 255,
ProtoTwohundredandfiftysix = 256,
ProtoTwohundredandfiftyseven = 257,
ProtoTwohundredandfiftyeight = 258,
ProtoTwohundredandfiftynine = 259,
ProtoTwohundredandsixty = 260,
ProtoTwohundredandsixtyone = 261,
Mptcp = 262,
Max = 263,
}
Variants§
Ip = 0
Icmp = 1
Igmp = 2
ProtoThree = 3
Ipip = 4
ProtoFive = 5
Tcp = 6
ProtoSeven = 7
Egp = 8
ProtoNine = 9
ProtoTen = 10
ProtoEleven = 11
Pup = 12
ProtoThirteen = 13
ProtoFourteen = 14
ProtoFifteen = 15
ProtoSixteen = 16
Udp = 17
ProtoEighteen = 18
ProtoNineteen = 19
ProtoTwenty = 20
ProtoTwentyone = 21
Idp = 22
ProtoTwentythree = 23
ProtoTwentyfour = 24
ProtoTwentyfive = 25
ProtoTwentysix = 26
ProtoTwentyseven = 27
ProtoTwentyeight = 28
ProtoTp = 29
ProtoThirty = 30
ProtoThirtyone = 31
ProtoThirtytwo = 32
Dccp = 33
ProtoThirtyfour = 34
ProtoThirtyfive = 35
ProtoThirtysix = 36
ProtoThirtyseven = 37
ProtoThirtyeight = 38
ProtoThirtynine = 39
ProtoFourty = 40
Ipv6 = 41
ProtoFourtytwo = 42
Routing = 43
Fragment = 44
ProtoFourtyfive = 45
Rsvp = 46
Gre = 47
ProtoFourtyeight = 48
ProtoFourtynine = 49
Esp = 50
Ah = 51
ProtoFiftytwo = 52
ProtoFiftythree = 53
ProtoFiftyfour = 54
ProtoFiftyfive = 55
ProtoFiftysix = 56
ProtoFiftyseven = 57
Icmpv6 = 58
None = 59
Dstopts = 60
ProtoSixtyone = 61
ProtoSixtytwo = 62
ProtoSixtythree = 63
ProtoSixtyfour = 64
ProtoSixtyfive = 65
ProtoSixtysix = 66
ProtoSixtyseven = 67
ProtoSixtyeight = 68
ProtoSixtynine = 69
ProtoSeventy = 70
ProtoSeventyone = 71
ProtoSeventytwo = 72
ProtoSeventythree = 73
ProtoSeventyfour = 74
ProtoSeventyfive = 75
ProtoSeventysix = 76
ProtoSeventyseven = 77
ProtoSeventyeight = 78
ProtoSeventynine = 79
ProtoEighty = 80
ProtoEightyone = 81
ProtoEightytwo = 82
ProtoEightythree = 83
ProtoEightyfour = 84
ProtoEightyfive = 85
ProtoEightysix = 86
ProtoEightyseven = 87
ProtoEightyeight = 88
ProtoEightynine = 89
ProtoNinety = 90
ProtoNinetyone = 91
Mtp = 92
ProtoNinetythree = 93
Beetph = 94
ProtoNinetyfive = 95
ProtoNinetysix = 96
ProtoNineetyseven = 97
Encap = 98
ProtoNinetynine = 99
ProtoOnehundred = 100
ProtoOnehundredandone = 101
ProtoOnehundredandtwo = 102
Pim = 103
ProtoOnehundredandfour = 104
ProtoOnehundredandfive = 105
ProtoOnehundredandsix = 106
ProtoOnehundredandseven = 107
Comp = 108
ProtoOnehundredandnine = 109
ProtoOnehundredandten = 110
ProtoOnehundredandeleven = 111
ProtoOnehundredandtwelve = 112
ProtoOnehundredandthirteen = 113
ProtoOnehundredandfourteen = 114
ProtoOnehundredandfifteen = 115
ProtoOnehundredandsixteen = 116
ProtoOnehundredandseventeen = 117
ProtoOnehundredandeighteen = 118
ProtoOnehundredandnineteen = 119
ProtoOnehundredandtwenty = 120
ProtoOnehundredandtwentyone = 121
ProtoOnehundredandtwentytwo = 122
ProtoOnehundredandtwentythree = 123
ProtoOnehundredandtwentyfour = 124
ProtoOnehundredandtwentyfive = 125
ProtoOnehundredandtwentysix = 126
ProtoOnehundredandtwentyseven = 127
ProtoOnehundredandtwentyeight = 128
ProtoOnehundredandtwentynine = 129
ProtoOnehundredandthirty = 130
ProtoOnehundredandthirtyone = 131
Sctp = 132
ProtoOnehundredandthirtythree = 133
ProtoOnehundredandthirtyfour = 134
Mh = 135
Udplite = 136
Mpls = 137
ProtoOnehundredandthirtyeight = 138
ProtoOnehundredandthirtynine = 139
ProtoOnehundredandfourty = 140
ProtoOnehundredandfourtyone = 141
ProtoOnehundredandfourtytwo = 142
Ethernet = 143
ProtoOnehundredandfourtyfour = 144
ProtoOnehundredandfourtyfive = 145
ProtoOnehundredandfourtysix = 146
ProtoOnehundredandfourtyseven = 147
ProtoOnehundredandfourtyeight = 148
ProtoOnehundredandfourtynine = 149
ProtoOnehundredandfifty = 150
ProtoOnehundredandfiftyone = 151
ProtoOnehundredandfiftytwo = 152
ProtoOnehundredandfiftythree = 153
ProtoOnehundredandfiftyfour = 154
ProtoOnehundredandfiftyfive = 155
ProtoOnehundredandfiftysix = 156
ProtoOnehundredandfiftyseven = 157
ProtoOnehundredandfiftyeight = 158
ProtoOnehundredandfiftynine = 159
ProtoOnehundredandsixty = 160
ProtoOnehundredandsixtyone = 161
ProtoOnehundredandsixtytwo = 162
ProtoOnehundredandsixtythree = 163
ProtoOnehundredandsixtyfour = 164
ProtoOnehundredandsixtyfive = 165
ProtoOnehundredandsixtysix = 166
ProtoOnehundredandsixtyseven = 167
ProtoOnehundredandsixtyeight = 168
ProtoOnehundredandsixtynine = 169
ProtoOnehundredandseventy = 170
ProtoOnehundredandseventyone = 171
ProtoOnehundredandseventytwo = 172
ProtoOnehundredandseventythree = 173
ProtoOnehundredandseventyfour = 174
ProtoOnehundredandseventyfive = 175
ProtoOnehundredandseventysix = 176
ProtoOnehundredandseventyseven = 177
ProtoOnehundredandseventyeight = 178
ProtoOnehundredandseventynine = 179
ProtoOnehundredandeighty = 180
ProtoOnehundredandeightyone = 181
ProtoOnehundredandeightytwo = 182
ProtoOnehundredandeightythree = 183
ProtoOnehundredandeightyfour = 184
ProtoOnehundredandeightyfive = 185
ProtoOnehundredandeightysix = 186
ProtoOnehundredandeightyseven = 187
ProtoOnehundredandeightyeight = 188
ProtoOnehundredandeightynine = 189
ProtoOnehundredandninety = 190
ProtoOnehundredandninetyone = 191
ProtoOnehundredandninetytwo = 192
ProtoOnehundredandninetythree = 193
ProtoOnehundredandninetyfour = 194
ProtoOnehundredandninetyfive = 195
ProtoOnehundredandninetysix = 196
ProtoOnehundredandninetyseven = 197
ProtoOnehundredandninetyeight = 198
ProtoOnehundredandninetynine = 199
ProtoTwohundred = 200
ProtoTwohundredandone = 201
ProtoTwohundredandtwo = 202
ProtoTwohundredandthree = 203
ProtoTwohundredandfour = 204
ProtoTwohundredandfive = 205
ProtoTwohundredandsix = 206
ProtoTwohundredandseven = 207
ProtoTwohundredandeight = 208
ProtoTwohundredandnine = 209
ProtoTwohundredandten = 210
ProtoTwohundredandeleven = 211
ProtoTwohundredandtwelve = 212
ProtoTwohundredandthirteen = 213
ProtoTwohundredandfourteen = 214
ProtoTwohundredandfifteen = 215
ProtoTwohundredandsixteen = 216
ProtoTwohundredandseventeen = 217
ProtoTwohundredandeighteen = 218
ProtoTwohundredandnineteen = 219
ProtoTwohundredandtwenty = 220
ProtoTwohundredandtwentyone = 221
ProtoTwohundredandtwentytwo = 222
ProtoTwohundredandtwentythree = 223
ProtoTwohundredandtwentyfour = 224
ProtoTwohundredandtwentyfive = 225
ProtoTwohundredandtwentysix = 226
ProtoTwohundredandtwentyseven = 227
ProtoTwohundredandtwentyeight = 228
ProtoTwohundredandtwentynine = 229
ProtoTwohundredandthirty = 230
ProtoTwohundredandthirtyone = 231
ProtoTwohundredandthirtytwo = 232
ProtoTwohundredandthirtythree = 233
ProtoTwohundredandthirtyfour = 234
ProtoTwohundredandthirtyfive = 235
ProtoTwohundredandthirtysix = 236
ProtoTwohundredandthirtyseven = 237
ProtoTwohundredandthirtyeight = 238
ProtoTwohundredandthirtynine = 239
ProtoTwohundredandfourty = 240
ProtoTwohundredandfourtyone = 241
ProtoTwohundredandfourtytwo = 242
ProtoTwohundredandfourtythree = 243
ProtoTwohundredandfourtyfour = 244
ProtoTwohundredandfourtyfive = 245
ProtoTwohundredandfourtysix = 246
ProtoTwohundredandfourtyseven = 247
ProtoTwohundredandfourtyeight = 248
ProtoTwohundredandfourtynine = 249
ProtoTwohundredandfifty = 250
ProtoTwohundredandfiftyone = 251
ProtoTwohundredandfiftytwo = 252
ProtoTwohundredandfiftythree = 253
ProtoTwohundredandfiftyfour = 254
ProtoRaw = 255
ProtoTwohundredandfiftysix = 256
ProtoTwohundredandfiftyseven = 257
ProtoTwohundredandfiftyeight = 258
ProtoTwohundredandfiftynine = 259
ProtoTwohundredandsixty = 260
ProtoTwohundredandsixtyone = 261
Mptcp = 262
Max = 263
Trait Implementations§
source§impl FromToNativeWasmType for SockProto
impl FromToNativeWasmType for SockProto
source§fn from_native(n: Self::Native) -> Self
fn from_native(n: Self::Native) -> Self
source§fn is_from_store(&self, _store: &impl AsStoreRef) -> bool
fn is_from_store(&self, _store: &impl AsStoreRef) -> bool
Returns whether the given value is from the given store. Read more
source§impl PartialEq for SockProto
impl PartialEq for SockProto
source§impl TryFrom<u16> for SockProto
impl TryFrom<u16> for SockProto
§type Error = TryFromPrimitiveError<SockProto>
type Error = TryFromPrimitiveError<SockProto>
The type returned in the event of a conversion error.
source§impl TryFromPrimitive for SockProto
impl TryFromPrimitive for SockProto
source§impl ValueType for SockProto
impl ValueType for SockProto
source§fn zero_padding_bytes(&self, _bytes: &mut [MaybeUninit<u8>])
fn zero_padding_bytes(&self, _bytes: &mut [MaybeUninit<u8>])
This method is passed a byte slice which contains the byte
representation of
self
. It must zero out any bytes which are
uninitialized (e.g. padding bytes).impl Copy for SockProto
impl Eq for SockProto
impl StructuralPartialEq for SockProto
Auto Trait Implementations§
impl Freeze for SockProto
impl RefUnwindSafe for SockProto
impl Send for SockProto
impl Sync for SockProto
impl Unpin for SockProto
impl UnwindSafe for SockProto
Blanket Implementations§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.
source§impl<T> Upcastable for T
impl<T> Upcastable for T
source§fn upcast_any_ref(&self) -> &(dyn Any + 'static)
fn upcast_any_ref(&self) -> &(dyn Any + 'static)
upcast ref
source§fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn upcast_any_mut(&mut self) -> &mut (dyn Any + 'static)
upcast mut ref
source§impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
impl<A1> WasmTypeList for A1where
A1: FromToNativeWasmType,
source§unsafe fn from_array(
_store: &mut impl AsStoreMut,
array: <A1 as WasmTypeList>::Array,
) -> A1
unsafe fn from_array( _store: &mut impl AsStoreMut, array: <A1 as WasmTypeList>::Array, ) -> A1
Constructs
Self
based on an array of values. Read moresource§unsafe fn from_slice(
store: &mut impl AsStoreMut,
slice: &[RawValue],
) -> Result<A1, TryFromSliceError>
unsafe fn from_slice( store: &mut impl AsStoreMut, slice: &[RawValue], ) -> Result<A1, TryFromSliceError>
Constructs
Self
based on a slice of values. Read moresource§unsafe fn into_array(
self,
_store: &mut impl AsStoreMut,
) -> <A1 as WasmTypeList>::Array
unsafe fn into_array( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::Array
Builds and returns an array of type
Array
from a tuple
(list) of values. Read moresource§fn empty_array() -> <A1 as WasmTypeList>::Array
fn empty_array() -> <A1 as WasmTypeList>::Array
Allocates and return an empty array of type
Array
that
will hold a tuple (list) of values, usually to hold the
returned values of a WebAssembly function call.source§unsafe fn from_c_struct(
_store: &mut impl AsStoreMut,
c_struct: <A1 as WasmTypeList>::CStruct,
) -> A1
unsafe fn from_c_struct( _store: &mut impl AsStoreMut, c_struct: <A1 as WasmTypeList>::CStruct, ) -> A1
Builds a tuple (list) of values from a C struct of type
CStruct
. Read moresource§unsafe fn into_c_struct(
self,
_store: &mut impl AsStoreMut,
) -> <A1 as WasmTypeList>::CStruct
unsafe fn into_c_struct( self, _store: &mut impl AsStoreMut, ) -> <A1 as WasmTypeList>::CStruct
Builds and returns a C struct of type
CStruct
from a
tuple (list) of values. Read moresource§unsafe fn write_c_struct_to_ptr(
c_struct: <A1 as WasmTypeList>::CStruct,
_ptr: *mut RawValue,
)
unsafe fn write_c_struct_to_ptr( c_struct: <A1 as WasmTypeList>::CStruct, _ptr: *mut RawValue, )
Writes the contents of a C struct to an array of
RawValue
. Read moresource§fn wasm_types() -> &'static [Type]
fn wasm_types() -> &'static [Type]
Get the Wasm types for the tuple (list) of currently
represented values.