diff options
Diffstat (limited to 'ext/net')
-rw-r--r-- | ext/net/lib.rs | 2 | ||||
-rw-r--r-- | ext/net/ops.rs | 4 | ||||
-rw-r--r-- | ext/net/ops_tls.rs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/ext/net/lib.rs b/ext/net/lib.rs index 068a865eb..8909c6f40 100644 --- a/ext/net/lib.rs +++ b/ext/net/lib.rs @@ -94,7 +94,7 @@ pub struct DefaultTlsOptions { /// using type alias for a `Option<Vec<String>>` could work, but there's a high chance /// that there might be another type alias pointing to a `Option<Vec<String>>`, which /// would override previously used alias. -pub struct UnsafelyIgnoreCertificateErrors(Option<Vec<String>>); +pub struct UnsafelyIgnoreCertificateErrors(pub Option<Vec<String>>); pub fn init<P: NetPermissions + 'static>( root_cert_store: Option<RootCertStore>, 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, _: (), diff --git a/ext/net/ops_tls.rs b/ext/net/ops_tls.rs index 58b6147cb..89879da68 100644 --- a/ext/net/ops_tls.rs +++ b/ext/net/ops_tls.rs @@ -751,7 +751,7 @@ where }) } -async fn op_connect_tls<NP>( +pub async fn op_connect_tls<NP>( state: Rc<RefCell<OpState>>, args: ConnectTlsArgs, _: (), |