Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
fixup! Add socket/communicate.rs: A way to communicate with a lorri d…
Browse files Browse the repository at this point in the history
…aemon.
  • Loading branch information
Profpatsch committed Jun 20, 2019
1 parent 58c57f4 commit 1fdd65d
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/socket/communicate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ pub enum CommunicationType {
// TODO: rename to IndicateActivity (along with all other `ping` things)
// issue: https://github.com/target/lorri/issues/101
Ping,
// /// Listen for events on the daemon
// DaemonListener,
// /// Get the daemon status
// DaemonStatus,
}

/// Message sent by the client to ask the server to start
Expand All @@ -42,8 +38,6 @@ pub struct Ping {

/// No message can be sent through this socket end (empty type).
pub enum NoMessage {}
// pub struct DaemonEvent {}
// pub struct DaemonStatus {}

/// `Listener` and possible errors.
pub mod listener {
Expand Down Expand Up @@ -230,14 +224,4 @@ pub mod client {
Client::bake(timeout, CommunicationType::Ping)
}

// /// Client for the `DaemonListener` communication type
// pub fn daemon_listener(timeout: Timeout) -> Client<DaemonEvent, NoMessage> {
// Client::bake(timeout, CommunicationType::DaemonListener)
// }

// /// Client for the `DaemonStatus` communication type
// pub fn daemon_status(timeout: Timeout) -> Client<DaemonStatus, NoMessage> {
// Client::bake(timeout, CommunicationType::DaemonStatus)
// }

}

0 comments on commit 1fdd65d

Please sign in to comment.