pub struct SshRpcSession { /* private fields */ }Implementations§
Source§impl SshRpcSession
impl SshRpcSession
pub fn connect(target: &PraySshTarget) -> PrayResult<Self>
pub fn connect_stdio(command: Command) -> PrayResult<Self>
pub fn call(&mut self, method: &str, params: Value) -> PrayResult<RpcResponse>
pub fn call_json(&mut self, method: &str, params: Value) -> PrayResult<Value>
pub fn call_bytes(&mut self, method: &str, params: Value) -> PrayResult<Vec<u8>>
Trait Implementations§
Source§impl Drop for SshRpcSession
impl Drop for SshRpcSession
Auto Trait Implementations§
impl Freeze for SshRpcSession
impl RefUnwindSafe for SshRpcSession
impl Send for SshRpcSession
impl Sync for SshRpcSession
impl Unpin for SshRpcSession
impl UnsafeUnpin for SshRpcSession
impl UnwindSafe for SshRpcSession
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more