airup_sdk/debug.rs
1/// An extension trait to provide `debug.*` API invocation.
2pub trait ConnectionExt<'a>: crate::Connection {
3 fn is_forking_supervisable(&'a mut self) -> Self::Invoke<'a, bool> {
4 self.invoke("debug.is_forking_supervisable", ())
5 }
6
7 fn dump(&'a mut self) -> Self::Invoke<'a, String> {
8 self.invoke("debug.dump", ())
9 }
10}
11impl<T> ConnectionExt<'_> for T where T: crate::Connection {}