Skip to content

Commit

Permalink
feat(io): expose quic listener to be build from third party lib (#1218)
Browse files Browse the repository at this point in the history
  • Loading branch information
joelwurtz authored Mar 6, 2025
1 parent a3eb126 commit 84b99bf
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions io/src/net/quic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ pub struct QuicListener {
}

impl QuicListener {
pub fn new(endpoint: Endpoint) -> Self {
Self { endpoint }
}

pub fn endpoint(&self) -> &Endpoint {
&self.endpoint
}
Expand Down

0 comments on commit 84b99bf

Please sign in to comment.