pub struct DefaultControlClient;Expand description
The standard, zero-configuration ControlClient using the default request/response behaviour.
Trait Implementations§
Source§impl Clone for DefaultControlClient
impl Clone for DefaultControlClient
Source§fn clone(&self) -> DefaultControlClient
fn clone(&self) -> DefaultControlClient
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 moreSource§impl ControlClient for DefaultControlClient
impl ControlClient for DefaultControlClient
Source§fn build_request<C: ControlCall>(
&self,
id: RequestId,
call: &C,
) -> JsonRpcRequest
fn build_request<C: ControlCall>( &self, id: RequestId, call: &C, ) -> JsonRpcRequest
Build the request envelope for a typed call with the given request
id.Source§fn parse_response<C: ControlCall>(
&self,
response: JsonRpcResponse,
) -> Result<C::Output, ControlError>
fn parse_response<C: ControlCall>( &self, response: JsonRpcResponse, ) -> Result<C::Output, ControlError>
Parse a response envelope into the typed result for call type
C.impl Copy for DefaultControlClient
Source§impl Debug for DefaultControlClient
impl Debug for DefaultControlClient
Source§impl Default for DefaultControlClient
impl Default for DefaultControlClient
Source§fn default() -> DefaultControlClient
fn default() -> DefaultControlClient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DefaultControlClient
impl RefUnwindSafe for DefaultControlClient
impl Send for DefaultControlClient
impl Sync for DefaultControlClient
impl Unpin for DefaultControlClient
impl UnsafeUnpin for DefaultControlClient
impl UnwindSafe for DefaultControlClient
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