// Create request builder and send request let response = client.get("https://sunnysab.cn") .send().await.unwrap();
println!("{:?}", response);
}
然后编译运行,会 panic。崩溃提示:
1 2 3 4 5 6 7 8 9
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Connect(SslIsNotSupported)', src\main.rs:34:20 stack backtrace: 0: backtrace::backtrace::trace_unsynchronized at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.40\src\backtrace\mod.rs:66 1: std::sys_common::backtrace::_print_fmt at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447\/src\libstd\sys_common\backtrace.rs:77 2: std::sys_common::backtrace::_print::{{impl}}::fmt at /rustc/b8cedc00407a4c56a3bda1ed605c6fc166655447\/src\libstd\sys_common\backtrace.rs:59 // 省略