diff options
Diffstat (limited to 'src/bin/rbw/sock.rs')
-rw-r--r-- | src/bin/rbw/sock.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/bin/rbw/sock.rs b/src/bin/rbw/sock.rs index 8dca169..1ba13ec 100644 --- a/src/bin/rbw/sock.rs +++ b/src/bin/rbw/sock.rs @@ -10,7 +10,10 @@ impl Sock { )?)) } - pub fn send(&mut self, msg: &rbw::agent::Request) -> anyhow::Result<()> { + pub fn send( + &mut self, + msg: &rbw::protocol::Request, + ) -> anyhow::Result<()> { let Self(sock) = self; sock.write_all( serde_json::to_string(msg) @@ -23,7 +26,7 @@ impl Sock { Ok(()) } - pub fn recv(&mut self) -> anyhow::Result<rbw::agent::Response> { + pub fn recv(&mut self) -> anyhow::Result<rbw::protocol::Response> { let Self(sock) = self; let mut buf = std::io::BufReader::new(sock); let mut line = String::new(); |