pub struct RuntimeClient { /* private fields */ }Implementations§
Source§impl RuntimeClient
impl RuntimeClient
pub fn new(socket_path: impl Into<PathBuf>) -> Self
pub fn socket_path(&self) -> &Path
pub async fn request( &self, rpc: RuntimeRpc, ) -> Result<RuntimeResponse, ClientError>
Trait Implementations§
Source§impl Clone for RuntimeClient
impl Clone for RuntimeClient
Source§fn clone(&self) -> RuntimeClient
fn clone(&self) -> RuntimeClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RuntimeClient
impl RefUnwindSafe for RuntimeClient
impl Send for RuntimeClient
impl Sync for RuntimeClient
impl Unpin for RuntimeClient
impl UnsafeUnpin for RuntimeClient
impl UnwindSafe for RuntimeClient
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