fn example() -> fahapi::Result<()> {
let mut api = fahapi::API::connect_timeout(&fahapi::DEFAULT_ADDR, std::time::Duration::from_secs(1))?;
api.pause_all()?;
api.unpause_all()
}
This is a Rust port of go-fahapi.
fn example() -> fahapi::Result<()> {
let mut api = fahapi::API::connect_timeout(&fahapi::DEFAULT_ADDR, std::time::Duration::from_secs(1))?;
api.pause_all()?;
api.unpause_all()
}
This is a Rust port of go-fahapi.