Skip to content

Commit

Permalink
docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
jdockerty committed Dec 5, 2023
1 parent 28ce85f commit b4c56c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/http.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ use tracing::info;
pub struct HttpProxy {}

impl HttpProxy {
// Return a new instance of `HttpProxy`.
//
// `HttpProxy` has a static lifetime as it exists the entire duration of the
// application's active lifecycle.
pub fn new() -> &'static HttpProxy {
&Self {}
}
Expand Down
4 changes: 4 additions & 0 deletions src/tcp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ use tracing::info;
pub struct TcpProxy {}

impl TcpProxy {
// Return a new instance of `TcpProxy`.
//
// `TcpProxy` has a static lifetime as it exists the entire duration of the
// application's active lifecycle.
pub fn new() -> &'static TcpProxy {
&Self {}
}
Expand Down

0 comments on commit b4c56c7

Please sign in to comment.