From 2011d3a92a85a748fadcef3cbc1f87f88458e7d6 Mon Sep 17 00:00:00 2001 From: Matt McCoy Date: Wed, 22 Jun 2016 21:14:24 -0400 Subject: [PATCH] Adding docs for pub functions that run commands --- src/client.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/client.rs b/src/client.rs index 0635b49..2d23145 100644 --- a/src/client.rs +++ b/src/client.rs @@ -145,6 +145,7 @@ impl Client { self.run_command_and_check_ok(&format!("COPY {} {}", sequence_set, mailbox_name).to_string()) } + /// Runs a command and checks if it returns OK. pub fn run_command_and_check_ok(&mut self, command: &str) -> Result<()> { match self.run_command(command) { Ok(lines) => parse_response_ok(lines), @@ -152,6 +153,7 @@ impl Client { } } + /// Runs any command passed to it. pub fn run_command(&mut self, untagged_command: &str) -> Result> { let command = self.create_command(untagged_command.to_string());