Show More
@@ -12,8 +12,8 b' use tokio_hglib::codec::ChannelMessage;' | |||||
12 | use tokio_hglib::protocol::MessageLoop; |
|
12 | use tokio_hglib::protocol::MessageLoop; | |
13 | use tokio_hglib::{Client, Connection}; |
|
13 | use tokio_hglib::{Client, Connection}; | |
14 |
|
14 | |||
15 |
use |
|
15 | use crate::message; | |
16 |
use |
|
16 | use crate::procutil; | |
17 |
|
17 | |||
18 | /// Future to send client-side fds over the command server channel. |
|
18 | /// Future to send client-side fds over the command server channel. | |
19 | /// |
|
19 | /// |
@@ -15,10 +15,10 b' use std::path::Path;' | |||||
15 | use tokio_hglib::protocol::{OneShotQuery, OneShotRequest}; |
|
15 | use tokio_hglib::protocol::{OneShotQuery, OneShotRequest}; | |
16 | use tokio_hglib::{Client, Connection}; |
|
16 | use tokio_hglib::{Client, Connection}; | |
17 |
|
17 | |||
18 |
use |
|
18 | use crate::attachio::AttachIo; | |
19 |
use |
|
19 | use crate::message::{self, Instruction}; | |
20 |
use |
|
20 | use crate::runcommand::ChgRunCommand; | |
21 |
use |
|
21 | use crate::uihandler::SystemHandler; | |
22 |
|
22 | |||
23 | pub trait ChgClientExt<C> |
|
23 | pub trait ChgClientExt<C> | |
24 | where |
|
24 | where |
@@ -21,9 +21,9 b' use tokio_hglib::UnixClient;' | |||||
21 | use tokio_process::{Child, CommandExt}; |
|
21 | use tokio_process::{Child, CommandExt}; | |
22 | use tokio_timer; |
|
22 | use tokio_timer; | |
23 |
|
23 | |||
24 |
use |
|
24 | use crate::clientext::ChgClientExt; | |
25 |
use |
|
25 | use crate::message::{Instruction, ServerSpec}; | |
26 |
use |
|
26 | use crate::procutil; | |
27 |
|
27 | |||
28 | const REQUIRED_SERVER_CAPABILITIES: &[&str] = &[ |
|
28 | const REQUIRED_SERVER_CAPABILITIES: &[&str] = &[ | |
29 | "attachio", |
|
29 | "attachio", |
@@ -15,9 +15,9 b' use tokio_hglib::codec::ChannelMessage;' | |||||
15 | use tokio_hglib::protocol::MessageLoop; |
|
15 | use tokio_hglib::protocol::MessageLoop; | |
16 | use tokio_hglib::{Client, Connection}; |
|
16 | use tokio_hglib::{Client, Connection}; | |
17 |
|
17 | |||
18 |
use |
|
18 | use crate::attachio::AttachIo; | |
19 |
use |
|
19 | use crate::message::{self, CommandType}; | |
20 |
use |
|
20 | use crate::uihandler::SystemHandler; | |
21 |
|
21 | |||
22 | enum AsyncS<R, S> { |
|
22 | enum AsyncS<R, S> { | |
23 | Ready(R), |
|
23 | Ready(R), |
@@ -12,8 +12,8 b' use std::process::{Command, Stdio};' | |||||
12 | use tokio; |
|
12 | use tokio; | |
13 | use tokio_process::{ChildStdin, CommandExt}; |
|
13 | use tokio_process::{ChildStdin, CommandExt}; | |
14 |
|
14 | |||
15 |
use |
|
15 | use crate::message::CommandSpec; | |
16 |
use |
|
16 | use crate::procutil; | |
17 |
|
17 | |||
18 | /// Callback to process shell command requests received from server. |
|
18 | /// Callback to process shell command requests received from server. | |
19 | pub trait SystemHandler: Sized { |
|
19 | pub trait SystemHandler: Sized { |
General Comments 0
You need to be logged in to leave comments.
Login now