We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f81b55 commit 2c57788Copy full SHA for 2c57788
src/client.rs
@@ -166,6 +166,11 @@ impl<S: Read + Write> Client<S> {
166
self.run_command("stop", ()).and_then(|_| self.expect_ok())
167
}
168
169
+ /// Toggle pause state
170
+ pub fn toggle_pause(&mut self) -> Result<()> {
171
+ self.run_command("pause", ()).and_then(|_| self.expect_ok())
172
+ }
173
+
174
/// Set pause state
175
pub fn pause(&mut self, value: bool) -> Result<()> {
176
self.run_command("pause", value as u8).and_then(|_| self.expect_ok())
0 commit comments