Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/denoland/rustls-tokio-stream
/ functions
Functions
181 in github.com/denoland/rustls-tokio-stream
⨍
Functions
181
◇
Types & classes
19
↓ 28 callers
Method
handshake
(&mut self)
src/stream.rs:698
↓ 14 callers
Method
shutdown
(&self, how: std::net::Shutdown)
src/stream.rs:202
↓ 12 callers
Function
expect_eof_read
(stm: &mut (impl AsyncReadExt + Unpin))
src/stream.rs:1623
↓ 10 callers
Function
tls_pair
( )
src/connection_stream.rs:602
↓ 10 callers
Function
tls_pair_slow_handshake
( delay_handshake: bool, slow_server: bool, slow_client: bool, buffer: bool, )
src/stream.rs:1454
↓ 9 callers
Function
clone_error
Clones an [`io::Error`], assuming the inner error, if any, is a [`rustls::Error`].
src/adapter.rs:26
↓ 9 callers
Function
expect_write_1
(conn: &mut ConnectionStream<TcpStream>)
src/connection_stream.rs:558
↓ 9 callers
Method
into_split
(self)
src/stream.rs:637
↓ 8 callers
Function
expect_read_1
(conn: &mut ConnectionStream<TcpStream>)
src/connection_stream.rs:583
↓ 8 callers
Method
flush
(&mut self)
src/adapter.rs:89
↓ 8 callers
Method
wake
(&self)
src/stream.rs:72
↓ 7 callers
Function
client_config
(alpn: &[&str])
src/stream.rs:1362
↓ 7 callers
Method
local_addr
Returns the local address of this socket.
src/stream.rs:326
↓ 7 callers
Function
tcp_pair
()
src/stream.rs:1373
↓ 7 callers
Method
underlying_stream
If the stream is open or handshaking, returns the underlying TCP stream.
src/stream.rs:859
↓ 6 callers
Function
clone_result
Clones an [`io::Result`], assuming the inner error, if any, is a [`rustls::Error`].
src/adapter.rs:18
↓ 6 callers
Method
into_inner
(mut self)
src/stream.rs:669
↓ 6 callers
Function
tls_pair_buffer_size
( buffer_size: Option<NonZeroUsize>, )
src/stream.rs:1419
↓ 6 callers
Function
tls_pair_handshake
()
src/stream.rs:1619
↓ 6 callers
Method
try_handshake
Try to get the handshake, if one exists.
src/stream.rs:703
↓ 5 callers
Method
close
(mut self)
src/stream.rs:811
↓ 5 callers
Function
expect_read_1_err
( conn: &mut ConnectionStream<TcpStream>, error: ErrorKind, )
src/connection_stream.rs:594
↓ 5 callers
Method
finalize_handshake
( &mut self, join_result: Result<io::Result<HandshakeResult<S>>, JoinError>, )
src/stream.rs:710
↓ 5 callers
Function
handshake_task
Performs a handshake and returns the [`TcpStream`]/[`Connection`] pair if successful.
src/handshake.rs:89
↓ 5 callers
Method
writable
(&self)
src/stream.rs:198
↓ 5 callers
Method
write
(&mut self, buf: &[u8])
src/adapter.rs:75
↓ 4 callers
Method
accept
( mut acceptor: Acceptor, tcp_handshake: &S, server_config_provider: ServerConfigProvider, )
src/stream.rs:404
↓ 4 callers
Method
into_inner
(self)
src/connection_stream.rs:107
↓ 4 callers
Function
nonblocking_tcp_drop
TLS 1.3 may yield a state where the client has sent a large stream of data and closed the connection before receiving anything from the server. The se
src/stream.rs:931
↓ 4 callers
Method
peer_addr
Returns the peer address of this socket.
src/stream.rs:313
↓ 4 callers
Method
poll_read_size
Polls the connection for read, writing as needed. As TLS may need to pump writes during reads, or pump reads during writes, we must ensure that the wa
src/connection_stream.rs:295
↓ 4 callers
Method
poll_shutdown
( self: Pin<&mut Self>, cx: &mut Context<'_>, )
src/stream.rs:1138
↓ 4 callers
Function
private_key
()
src/lib.rs:132
↓ 4 callers
Method
reclaim
(self)
src/handshake.rs:66
↓ 4 callers
Function
server_config
(alpn: &[&str])
src/stream.rs:1342
↓ 4 callers
Function
tls_pair
()
src/stream.rs:1394
↓ 4 callers
Function
tls_pair_alpn
( server_alpn: &[&str], server_buffer_size: Option<NonZeroUsize>, client_alpn: &[&str], client
src/stream.rs:1494
↓ 3 callers
Function
expect_io_error
( e: Result<T, io::Error>, kind: io::ErrorKind, )
src/lib.rs:185
↓ 3 callers
Function
expect_io_error_read
( stm: &mut (impl AsyncReadExt + Unpin), kind: io::ErrorKind, )
src/stream.rs:1629
↓ 3 callers
Method
poll_handshake
( &mut self, cx: &mut Context, )
src/stream.rs:679
↓ 3 callers
Method
poll_perform_write
( &mut self, cx: &mut Context<'_>, flushing: bool, f: impl Fn(&mut Connection) -> T, )
src/connection_stream.rs:432
↓ 3 callers
Method
poll_write
Polls the connection for writes, reading as needed. As TLS may need to pump writes during reads, or pump reads during writes, we must ensure that the
src/connection_stream.rs:370
↓ 3 callers
Method
poll_write_only
(&mut self, mut cx: PollContext)
src/connection_stream.rs:174
↓ 3 callers
Method
read
(&mut self, buf: &mut [u8])
src/adapter.rs:55
↓ 3 callers
Method
readable
(&self)
src/stream.rs:194
↓ 3 callers
Function
rustls_to_io_error
Convert a [`rustls::Error`] to an [`io::Error`]
src/adapter.rs:13
↓ 3 callers
Method
set_write_waker
Register the write waker if pending, or wake immediately if the deferred wakers have been woken.
src/stream.rs:96
↓ 3 callers
Function
tcp_pair
()
src/lib.rs:164
↓ 3 callers
Function
trace_result
(result: io::Result<T>)
src/handshake.rs:15
↓ 3 callers
Method
try_read
Perform a read operation on this connection. Read as much as possible into the buffer.
src/connection_stream.rs:211
↓ 2 callers
Function
client_config
()
src/lib.rs:153
↓ 2 callers
Method
cx
( &'_ mut self, waker_ref: &'g mut Option<Waker>, f: impl Fn(&mut Context<'_>) -> R, )
src/connection_stream.rs:35
↓ 2 callers
Function
make_config
( alpn: Result<&'static [&'static str], &'static str>, )
src/stream.rs:1517
↓ 2 callers
Method
poll_pending_handshake
If the handshake is complete, migrate from a pending handshake to the open state.
src/stream.rs:757
↓ 2 callers
Method
poll_read_only
(&mut self, mut cx: PollContext)
src/connection_stream.rs:129
↓ 2 callers
Method
poll_shutdown
Polls for completion of all the writes in the rustls [`Connection`]. Does not progress on reads at all.
src/connection_stream.rs:508
↓ 2 callers
Function
read_tls
( tcp: &S, tls: &mut Connection, )
src/adapter.rs:94
↓ 2 callers
Function
send_handshake
( tcp: Arc<S>, tls: Result<Connection, io::Error>, test_options: TestOptions, handshake: Arc<Handshake
src/stream.rs:870
↓ 2 callers
Function
server_config
()
src/lib.rs:146
↓ 2 callers
Function
server_name
()
src/lib.rs:160
↓ 2 callers
Method
set_linger
(&self, dur: Option<Duration>)
src/stream.rs:300
↓ 2 callers
Function
tls_pair_handshake_buffer_size
( server_buffer_size: Option<NonZeroUsize>, client_buffer_size: Option<NonZeroUsize>, )
src/stream.rs:1602
↓ 2 callers
Function
tls_with_tcp_server
( delay_handshake: bool, )
src/stream.rs:1436
↓ 2 callers
Function
trace_error
(error: io::Error)
src/adapter.rs:38
↓ 2 callers
Function
try_write
( tcp: &S, tls: &mut Connection, )
src/handshake.rs:45
↓ 2 callers
Method
try_write
(&self, buf: &[u8])
src/stream.rs:190
↓ 2 callers
Function
write_acceptor_alert
( tcp: &S, mut alert: AcceptedAlert, )
src/adapter.rs:118
↓ 2 callers
Method
write_buf_fully
Fully write a buffer to the TLS stream, expecting it to write fully and not fail.
src/connection_stream.rs:493
↓ 2 callers
Function
write_tls
( tcp: &S, tls: &mut Connection, )
src/adapter.rs:102
↓ 1 callers
Function
alpn_handler
( client_hello: ClientHello, )
src/system_test/disconnect_test.rs:16
↓ 1 callers
Function
enable_byte_tracing
()
src/lib.rs:38
↓ 1 callers
Function
handshake_task_internal
( tcp: Arc<S>, mut tls: Connection, test_options: TestOptions, )
src/handshake.rs:109
↓ 1 callers
Method
into_std
(self)
src/stream.rs:206
↓ 1 callers
Function
make_config
( alpn: Result<&'static [&'static str], &'static str>, )
src/system_test/disconnect_test.rs:42
↓ 1 callers
Method
poll_flush
Polls for completion of all the writes in the rustls [`Connection`]. Does not progress on reads at all.
src/connection_stream.rs:500
↓ 1 callers
Method
poll_read_ready
(&self, cx: &mut Context<'_>)
src/stream.rs:178
↓ 1 callers
Method
poll_shutdown_or_abort
Shuts the connection down, optionally waiting for the handshake to complete.
src/stream.rs:771
↓ 1 callers
Method
poll_write
( mut self: Pin<&mut Self>, cx: &mut Context<'_>, buf: &[u8], )
src/stream.rs:990
↓ 1 callers
Method
poll_write_ready
(&self, cx: &mut Context<'_>)
src/stream.rs:182
↓ 1 callers
Function
read_acceptor
( tcp: &S, acceptor: &mut Acceptor, )
src/adapter.rs:110
↓ 1 callers
Function
server_config_alpn
(alpn: &[&str])
src/system_test/disconnect_test.rs:32
↓ 1 callers
Function
server_config_protocol
( protocol: &'static SupportedProtocolVersion, )
src/stream.rs:1352
↓ 1 callers
Method
set_read_waker
Register the read waker if pending, or wake immediately if the deferred wakers have been woken.
src/stream.rs:87
↓ 1 callers
Function
tls_pair_alpn_acceptor
( server_alpn: fn( ClientHello, ) -> Result<&'static [&'static str], &'static str>, server_b
src/stream.rs:1528
↓ 1 callers
Function
tls_pair_alpn_from_acceptor
( server_alpn: fn( ClientHello, ) -> Result<&'static [&'static str], &'static str>, server_b
src/stream.rs:1555
↓ 1 callers
Function
tls_pair_protocol
( buffer_size: Option<NonZeroUsize>, protocol: &'static SupportedProtocolVersion, )
src/stream.rs:1398
↓ 1 callers
Function
try_read
( tcp: &S, tls: &mut Connection, )
src/handshake.rs:23
↓ 1 callers
Method
try_read
(&self, buf: &mut [u8])
src/stream.rs:186
↓ 1 callers
Method
unsplit
Reunites with a previously split `TlsStreamWrite`.
src/stream.rs:1225
↓ 1 callers
Function
wait_for_peek
(conn: &mut ConnectionStream<TcpStream>)
src/connection_stream.rs:562
Function
alpn_handler
( client_hello: ClientHello, )
src/stream.rs:1740
Function
certificate
()
src/lib.rs:118
Method
connection
(&self)
src/connection_stream.rs:112
Method
connection
If the stream is open, returns the underlying rustls connection.
src/stream.rs:662
Method
default
()
src/stream.rs:108
Function
disconnect_test
()
src/system_test/disconnect_test.rs:54
Method
downcast
(self)
src/stream.rs:164
Method
drop
(&mut self)
src/stream.rs:1147
Method
flush
(&mut self)
src/handshake.rs:142
Method
fmt
(&self, f: &mut std::fmt::Formatter<'_>)
src/stream.rs:257
next →
1–100 of 181, ranked by callers