Skip to content

Commit

Permalink
doc test fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
fakeshadow committed Jun 21, 2024
1 parent 05af635 commit c8597f7
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tls/src/rustls_uring.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,14 @@ use self::buf::WriteBuf;
/// For now due to design limitation TlsStream offers concurrency with [AsyncBufRead::read] and
/// [AsyncBufWrite::write] but in either case the async function must run to completion and cancel
/// it prematurely would cause panic.
/// ```rust(no_run)
/// # async fn complete(stream: TlsStream<ServerConnection, TcpStream>) {
/// ```
/// use xitca_io::{
/// io_uring::{AsyncBufRead, AsyncBufWrite},
/// net::io_uring::TcpStream
/// };
/// use xitca_tls::rustls_uring::{ServerConnection, TlsStream};
///
/// async fn complete(stream: TlsStream<ServerConnection, TcpStream>) {
/// let _ = stream.read(vec![0; 128]).await;
/// let _ = stream.read(vec![0; 128]).await; // serialize read to complete is ok.
///
Expand Down

0 comments on commit c8597f7

Please sign in to comment.