Struct rings_rpc::jsonrpc_client::request::RequestBuilder
source · pub struct RequestBuilder { /* private fields */ }
Expand description
Creates JSON-RPC requests
Implementations§
source§impl RequestBuilder
impl RequestBuilder
sourcepub fn single_request(&mut self, method: String, params: Params) -> (Id, String)
pub fn single_request(&mut self, method: String, params: Params) -> (Id, String)
Build a single request with the next available id
sourcepub fn call_request(&mut self, msg: &CallMessage) -> (Id, String)
pub fn call_request(&mut self, msg: &CallMessage) -> (Id, String)
call single_request
sourcepub fn subscribe_request(
&mut self,
subscribe: String,
subscribe_params: Params
) -> (Id, String)
pub fn subscribe_request( &mut self, subscribe: String, subscribe_params: Params ) -> (Id, String)
subscribe request
sourcepub fn unsubscribe_request(
&mut self,
unsubscribe: String,
sid: SubscriptionId
) -> (Id, String)
pub fn unsubscribe_request( &mut self, unsubscribe: String, sid: SubscriptionId ) -> (Id, String)
unsubscribe request
sourcepub fn notification(&mut self, msg: &NotifyMessage) -> String
pub fn notification(&mut self, msg: &NotifyMessage) -> String
notification request
Auto Trait Implementations§
impl RefUnwindSafe for RequestBuilder
impl Send for RequestBuilder
impl Sync for RequestBuilder
impl Unpin for RequestBuilder
impl UnwindSafe for RequestBuilder
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
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