summaryrefslogtreecommitdiff
path: root/ext/net/ops.rs
diff options
context:
space:
mode:
authorSatya Rohith <me@satyarohith.com>2021-09-20 19:35:23 +0530
committerGitHub <noreply@github.com>2021-09-20 19:35:23 +0530
commit3708cbc6000dac17a26e07e81e02bcbebffe3d0f (patch)
tree1745b5e15c674f89439fd2e99e90699cf5a5055c /ext/net/ops.rs
parent269bf380e0fb2e532e7340c4ba64d4eaa4d5d45e (diff)
refactor(ext/net): make op_connect & op_connect_tls public (#12150)
Diffstat (limited to 'ext/net/ops.rs')
-rw-r--r--ext/net/ops.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/net/ops.rs b/ext/net/ops.rs
index 7f8a97df3..158f25515 100644
--- a/ext/net/ops.rs
+++ b/ext/net/ops.rs
@@ -278,13 +278,13 @@ where
}
#[derive(Deserialize)]
-struct ConnectArgs {
+pub struct ConnectArgs {
transport: String,
#[serde(flatten)]
transport_args: ArgsEnum,
}
-async fn op_connect<NP>(
+pub async fn op_connect<NP>(
state: Rc<RefCell<OpState>>,
args: ConnectArgs,
_: (),