Mais conteúdo relacionado
Semelhante a RustでWebSocketな自社APIを使う (20)
RustでWebSocketな自社APIを使う
- 5. Rust学び始め期
• Rust by Example写経
• Project EulerをRustで解く
• 競プロ過去問をRustで解く
↓
• 途中から数学&アルゴリズム⼒のたたかいに
• Rustの⾔語仕様のうち、触れないままのものも
• エラー処理とか、並列処理とか、ライフタイムとか…
- 13. Future
• サーバーとの接続がセキュアな(wss://〜)場合
• client は splittable ではない → sender / receiver へ分割不可能
• ⾃社APIは wss://〜 のみしか受け付けない
→ わからないなりにFutureを使う必要あり
https://github.com/websockets-rs/rust-websocket/blob/master/examples/ssl-client.rs