From 99bb7ac4d705b3d140bf34b0696fe49485baf91b Mon Sep 17 00:00:00 2001
From: Yosh A resource which represents some error information. The only method provided by this resource is In the To provide more specific error information, other interfaces may
+offer functions to "downcast" this error into more specific types. For example,
+errors returned from streams derived from filesystem types can be described using
+the filesystem's own error-code type. This is done using the function
+ Returns a string that is suitable to assist humans in debugging
+this error. WARNING: The returned string should not be consumed mechanically!
+It may change across platforms, hosts, or other implementation
+details. Parsing this string is a major platform-compatibility
+hazard. An opaque resource that represents access to (a subset of) the network.
This enables context-based security for networking.
There is no need for this to map 1:1 to a physical network interface. Attempts to extract a network-related Stream operations which return Note that this function is fallible because not all stream-related
+errors are network-related errors. This interface provides a value-export of the default network handle.. A poll API intended to let users wait for I/O events on multiple handles
at once.
-
-
wasi:sockets/network@0.2.2
wasi:sockets/instance-network@0.2.2
wasi:io/poll@0.2.2
wasi:sockets/udp@0.2.2
wasi:sockets/udp-create-socket@0.2.2
wasi:io/error@0.2.2
wasi:io/streams@0.2.2
wasi:clocks/monotonic-clock@0.2.2
wasi:sockets/tcp@0.2.2
wasi:sockets/tcp-create-socket@0.2.2
wasi:sockets/ip-name-lookup@0.2.2
wasi:io/error@0.2.3
wasi:sockets/network@0.2.3
wasi:sockets/instance-network@0.2.3
wasi:io/poll@0.2.3
wasi:sockets/udp@0.2.3
wasi:sockets/udp-create-socket@0.2.3
wasi:io/streams@0.2.3
wasi:clocks/monotonic-clock@0.2.3
wasi:sockets/tcp@0.2.3
wasi:sockets/tcp-create-socket@0.2.3
wasi:sockets/ip-name-lookup@0.2.3
Import interface wasi:sockets/network@0.2.2
+Import interface wasi:io/error@0.2.3
Types
-
+resource network
+resource error
to-debug-string
,
+which provides some human-readable information about the error.wasi:io
package, this resource is returned through the
+wasi:io/streams/stream-error
type.wasi:filesystem/types/filesystem-error-code
, which takes a borrow<error>
+parameter and returns an option<wasi:filesystem/types/error-code>
.The set of functions which can "downcast" an
+error
into a more
+concrete type is open.Functions
+
+[method]error.to-debug-string: func
Params
+
+
+self
: borrow<error
>Return values
+
+Import interface wasi:sockets/network@0.2.3
+
+Types
+
+
+type error
ipv4
: ipv4-socket-address
ipv6
: ipv6-socket-address
Import interface wasi:sockets/instance-network@0.2.2
+
+Functions
+
+network-error-code: func
error-code
from the stream
+error
provided.stream-error::last-operation-failed
+have a payload with more information about the operation that failed.
+This payload can be passed through to this function to see if there's
+network-related information about the error to return.Params
+
+
+err
: borrow<error
>Return values
+
+
+error-code
>Import interface wasi:sockets/instance-network@0.2.3
Types
@@ -224,7 +279,7 @@ supported size.
-network
>Import interface wasi:io/poll@0.2.2
+Import interface wasi:io/poll@0.2.3
@@ -277,7 +332,7 @@ being ready for I/O.
type pollable
future
is natively supported in Pre
pollable
>type network
udp-socket
>, error-code
>resource error
A resource which represents some error information.
-The only method provided by this resource is to-debug-string
,
-which provides some human-readable information about the error.
In the wasi:io
package, this resource is returned through the
-wasi:io/streams/stream-error
type.
To provide more specific error information, other interfaces may
-offer functions to "downcast" this error into more specific types. For example,
-errors returned from streams derived from filesystem types can be described using
-the filesystem's own error-code type. This is done using the function
-wasi:filesystem/types/filesystem-error-code
, which takes a borrow<error>
-parameter and returns an option<wasi:filesystem/types/error-code>
.
error
into a more
-concrete type is open.[method]error.to-debug-string: func
Returns a string that is suitable to assist humans in debugging -this error.
-WARNING: The returned string should not be consumed mechanically! -It may change across platforms, hosts, or other implementation -details. Parsing this string is a major platform-compatibility -hazard.
-self
: borrow<error
>WASI I/O is an I/O abstraction API which is currently focused on providing stream types.
In the future, the component model is expected to add built-in stream types;
@@ -1099,7 +1121,7 @@ is ready for reading, before performing the splice
.
u64
, stream-error
>WASI Monotonic Clock is a clock API intended to let users measure elapsed time.
It is intended to be portable at least between Unix-family platforms and @@ -1158,7 +1180,7 @@ elapsed from the time this function is invoked.
pollable
>type input-stream
ok
.
error-code
>type network
tcp-socket
>, error-code
>type pollable
wasi:io/error@0.2.3
wasi:sockets/network@0.2.3
wasi:sockets/instance-network@0.2.3
wasi:io/poll@0.2.3
wasi:sockets/udp@0.2.3
wasi:sockets/udp-create-socket@0.2.3
wasi:io/error@0.2.3
wasi:io/streams@0.2.3
wasi:clocks/monotonic-clock@0.2.3
wasi:sockets/tcp@0.2.3
resource error
A resource which represents some error information.
-The only method provided by this resource is to-debug-string
,
-which provides some human-readable information about the error.
In the wasi:io
package, this resource is returned through the
-wasi:io/streams/stream-error
type.
To provide more specific error information, other interfaces may
-offer functions to "downcast" this error into more specific types. For example,
-errors returned from streams derived from filesystem types can be described using
-the filesystem's own error-code type. This is done using the function
-wasi:filesystem/types/filesystem-error-code
, which takes a borrow<error>
-parameter and returns an option<wasi:filesystem/types/error-code>
.
error
into a more
-concrete type is open.[method]error.to-debug-string: func
Returns a string that is suitable to assist humans in debugging -this error.
-WARNING: The returned string should not be consumed mechanically! -It may change across platforms, hosts, or other implementation -details. Parsing this string is a major platform-compatibility -hazard.
-self
: borrow<error
>type error
resource network
An opaque resource that represents access to (a subset of) the network. This enables context-based security for networking. There is no need for this to map 1:1 to a physical network interface.
@@ -245,25 +209,6 @@ supported size.ipv4
: ipv4-socket-address
ipv6
: ipv6-socket-address
network-error-code: func
Attempts to extract a network-related error-code
from the stream
-error
provided.
Stream operations which return stream-error::last-operation-failed
-have a payload with more information about the operation that failed.
-This payload can be passed through to this function to see if there's
-network-related information about the error to return.
Note that this function is fallible because not all stream-related -errors are network-related errors.
-err
: borrow<error
>error-code
>This interface provides a value-export of the default network handle..
udp-socket
>, error-code
>resource error
A resource which represents some error information.
+The only method provided by this resource is to-debug-string
,
+which provides some human-readable information about the error.
In the wasi:io
package, this resource is returned through the
+wasi:io/streams/stream-error
type.
To provide more specific error information, other interfaces may
+offer functions to "downcast" this error into more specific types. For example,
+errors returned from streams derived from filesystem types can be described using
+the filesystem's own error-code type. This is done using the function
+wasi:filesystem/types/filesystem-error-code
, which takes a borrow<error>
+parameter and returns an option<wasi:filesystem/types/error-code>
.
error
into a more
+concrete type is open.[method]error.to-debug-string: func
Returns a string that is suitable to assist humans in debugging +this error.
+WARNING: The returned string should not be consumed mechanically! +It may change across platforms, hosts, or other implementation +details. Parsing this string is a major platform-compatibility +hazard.
+self
: borrow<error
>WASI I/O is an I/O abstraction API which is currently focused on providing stream types.