pub struct Call<'a> { /* private fields */ }
Expand description
A single rpc method call with arguments. May be sent to the server by itself using as_request, or as a batch, using batch_request.
Implementations§
Source§impl<'a> Call<'a>
impl<'a> Call<'a>
Sourcepub fn as_request(&self) -> Value
pub fn as_request(&self) -> Value
Convert call to a json object which can be serialized and sent to a jsonrpc server.
Sourcepub fn batch_request(calls: &[Self]) -> Value
pub fn batch_request(calls: &[Self]) -> Value
Convert list of calls to a json object which can be serialized and sent to a jsonrpc server.
Auto Trait Implementations§
impl<'a> Freeze for Call<'a>
impl<'a> RefUnwindSafe for Call<'a>
impl<'a> Send for Call<'a>
impl<'a> Sync for Call<'a>
impl<'a> Unpin for Call<'a>
impl<'a> UnwindSafe for Call<'a>
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