aboutsummaryrefslogtreecommitdiffstats
path: root/teleterm/src/client.rs
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2019-11-16 10:48:23 -0500
committerJesse Luehrs <doy@tozt.net>2019-11-16 10:48:23 -0500
commitc3aed08259c794290d8cf21fe0712b36d4c5f523 (patch)
tree3a064d859bdc258c99f554c952643eeb2f043ce4 /teleterm/src/client.rs
parentb8d8dbf0ff086825ce226b02603035601fbf955f (diff)
downloadteleterm-c3aed08259c794290d8cf21fe0712b36d4c5f523.tar.gz
teleterm-c3aed08259c794290d8cf21fe0712b36d4c5f523.zip
shorter names
Diffstat (limited to 'teleterm/src/client.rs')
-rw-r--r--teleterm/src/client.rs18
1 files changed, 8 insertions, 10 deletions
diff --git a/teleterm/src/client.rs b/teleterm/src/client.rs
index 254940c..daabf7d 100644
--- a/teleterm/src/client.rs
+++ b/teleterm/src/client.rs
@@ -19,7 +19,7 @@ enum ReadSocket<
Connected(crate::protocol::FramedReadHalf<S>),
Reading(
Box<
- dyn futures::future::Future<
+ dyn futures::Future<
Item = (
crate::protocol::Message,
crate::protocol::FramedReadHalf<S>,
@@ -31,7 +31,7 @@ enum ReadSocket<
Processing(
crate::protocol::FramedReadHalf<S>,
Box<
- dyn futures::future::Future<
+ dyn futures::Future<
Item = crate::protocol::Message,
Error = Error,
> + Send,
@@ -45,14 +45,13 @@ enum WriteSocket<
NotConnected,
Connecting(
Box<
- dyn futures::future::Future<Item = S, Error = crate::error::Error>
- + Send,
+ dyn futures::Future<Item = S, Error = crate::error::Error> + Send,
>,
),
Connected(crate::protocol::FramedWriteHalf<S>),
Writing(
Box<
- dyn futures::future::Future<
+ dyn futures::Future<
Item = crate::protocol::FramedWriteHalf<S>,
Error = Error,
> + Send,
@@ -68,8 +67,7 @@ pub enum Event {
pub type Connector<S> = Box<
dyn Fn() -> Box<
- dyn futures::future::Future<Item = S, Error = crate::error::Error>
- + Send,
+ dyn futures::Future<Item = S, Error = crate::error::Error> + Send,
> + Send,
>;
@@ -227,7 +225,7 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static>
component_future::Async<Option<Event>>,
Option<
Box<
- dyn futures::future::Future<
+ dyn futures::Future<
Item = crate::protocol::Message,
Error = Error,
> + Send,
@@ -284,7 +282,7 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static>
id: &str,
) -> Result<
Box<
- dyn futures::future::Future<
+ dyn futures::Future<
Item = crate::protocol::Message,
Error = Error,
> + Send,
@@ -584,7 +582,7 @@ impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static>
#[must_use = "streams do nothing unless polled"]
impl<S: tokio::io::AsyncRead + tokio::io::AsyncWrite + Send + 'static>
- futures::stream::Stream for Client<S>
+ futures::Stream for Client<S>
{
type Item = Event;
type Error = Error;