Struct electrum_client::Request
source · [−]pub struct Request<'a> {
pub id: usize,
pub method: &'a str,
pub params: Vec<Param>,
/* private fields */
}
Expand description
A request that can be sent to the server
Fields
id: usize
The JSON-RPC request id
method: &'a str
The request method
params: Vec<Param>
The request parameters
Implementations
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Request<'a>
impl<'a> Send for Request<'a>
impl<'a> Sync for Request<'a>
impl<'a> Unpin for Request<'a>
impl<'a> UnwindSafe for Request<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more