Skip to content

Commit d6fbdc7

Browse files
authored
Merge pull request #10 from badeend/handshake-error
Expose handshake error
2 parents 73b0a0f + d6446b0 commit d6fbdc7

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

imports.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,9 @@ is ready for reading, before performing the <code>splice</code>.</p>
437437
#### <a id="pollable"></a>`type pollable`
438438
[`pollable`](#pollable)
439439
<p>
440+
#### <a id="io_error"></a>`type io-error`
441+
[`error`](#error)
442+
<p>
440443
#### <a id="client_handshake"></a>`resource client-handshake`
441444
<h4><a id="client_connection"></a><code>resource client-connection</code></h4>
442445
<h4><a id="future_client_streams"></a><code>resource future-client-streams</code></h4>
@@ -483,5 +486,5 @@ is ready for reading, before performing the <code>splice</code>.</p>
483486
</ul>
484487
<h5>Return values</h5>
485488
<ul>
486-
<li><a id="method_future_client_streams_get.0"></a> option&lt;result&lt;result&lt;(own&lt;<a href="#client_connection"><a href="#client_connection"><code>client-connection</code></a></a>&gt;, own&lt;<a href="#input_stream"><a href="#input_stream"><code>input-stream</code></a></a>&gt;, own&lt;<a href="#output_stream"><a href="#output_stream"><code>output-stream</code></a></a>&gt;)&gt;&gt;&gt;</li>
489+
<li><a id="method_future_client_streams_get.0"></a> option&lt;result&lt;result&lt;(own&lt;<a href="#client_connection"><a href="#client_connection"><code>client-connection</code></a></a>&gt;, own&lt;<a href="#input_stream"><a href="#input_stream"><code>input-stream</code></a></a>&gt;, own&lt;<a href="#output_stream"><a href="#output_stream"><code>output-stream</code></a></a>&gt;), own&lt;<a href="#io_error"><a href="#io_error"><code>io-error</code></a></a>&gt;&gt;&gt;&gt;</li>
487490
</ul>

wit/types.wit

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ interface types {
44
use wasi:io/streams@0.2.3.{input-stream, output-stream};
55
@unstable(feature = tls)
66
use wasi:io/poll@0.2.3.{pollable};
7+
@unstable(feature = tls)
8+
use wasi:io/error@0.2.3.{error as io-error};
79

810
@unstable(feature = tls)
911
resource client-handshake {
@@ -26,6 +28,6 @@ interface types {
2628
subscribe: func() -> pollable;
2729

2830
@unstable(feature = tls)
29-
get: func() -> option<result<result<tuple<client-connection, input-stream, output-stream>>>>;
31+
get: func() -> option<result<result<tuple<client-connection, input-stream, output-stream>, io-error>>>;
3032
}
3133
}

0 commit comments

Comments
 (0)