|
|
@@ -1,11 +1,11 @@
|
|
1
|
1
|
use futures::Future;
|
|
2
|
|
-use futures::task::{Context, Poll};
|
|
3
|
|
-use core::pin::Pin;
|
|
|
2
|
+//use futures::task::{Context, Poll};
|
|
|
3
|
+//use core::pin::Pin;
|
|
4
|
4
|
use tokio::stream::Stream;
|
|
5
|
|
-use async_tungstenite::{tokio::connect_async, tungstenite::Message, WebSocketStream};
|
|
6
|
|
-use url::Url;
|
|
|
5
|
+//use async_tungstenite::{tokio::connect_async, tungstenite::Message, WebSocketStream};
|
|
|
6
|
+//use url::Url;
|
|
7
|
7
|
|
|
8
|
|
-use super::packet_connection::IncomingPacket;
|
|
|
8
|
+use super::packet::IncomingPacket;
|
|
9
|
9
|
|
|
10
|
10
|
use std::time::Duration;
|
|
11
|
11
|
|
|
|
@@ -23,14 +23,14 @@ pub trait RPC: Future {
|
|
23
|
23
|
|
|
24
|
24
|
pub trait ServerEventStream<PacketType>: Stream<Item = PacketType> {}
|
|
25
|
25
|
|
|
26
|
|
-pub struct WSRPCInterface<PacketType, Stream> {
|
|
|
26
|
+/*pub struct WSRPCInterface<PacketType, Stream> {
|
|
27
|
27
|
// TODO
|
|
28
|
28
|
_unused: PacketType,
|
|
29
|
29
|
stream: WebSocketStream<Stream>,
|
|
30
|
30
|
}
|
|
31
|
31
|
|
|
32
|
32
|
impl<P, S> WSRPCInterface<P, S> {
|
|
33
|
|
- fn create<P2, S2>(ws_stream: WebSocketStream<S2>) -> (Self, WSServerEventStream<P2>) {
|
|
|
33
|
+ fn create<P2, S2>(_ws_stream: WebSocketStream<S2>) -> (Self, WSServerEventStream<P2>) {
|
|
34
|
34
|
// TODO
|
|
35
|
35
|
panic!("Not yet implemented.");
|
|
36
|
36
|
}
|
|
|
@@ -80,11 +80,11 @@ impl<P> Stream for WSServerEventStream<P> {
|
|
80
|
80
|
// TODO
|
|
81
|
81
|
panic!("Not yet implemented.");
|
|
82
|
82
|
}
|
|
83
|
|
-}
|
|
84
|
|
-
|
|
|
83
|
+}*/
|
|
85
|
84
|
|
|
86
|
|
-pub async fn low_level_integration_test_client(address: String) {
|
|
87
|
|
- let url = Url::parse(&address).unwrap();
|
|
88
|
|
- let (mut ws_stream, _) = connect_async(url).await.unwrap();
|
|
|
85
|
+pub async fn low_level_integration_test_client(_address: String) {
|
|
|
86
|
+ //let url = Url::parse(&address).unwrap();
|
|
|
87
|
+ //let (mut ws_stream, _) = connect_async(url).await.unwrap();
|
|
89
|
88
|
// TODO
|
|
|
89
|
+ panic!("Not yet implemented.");
|
|
90
|
90
|
}
|