pub enum JrpcResponseParam {
JrpcResult(JsonValue),
JrpcError(JrpcError),
}
Variants§
Implementations§
Source§impl JrpcResponseParam
impl JrpcResponseParam
pub fn generate_result(response: JsonValue) -> Result<Self, ErrorVariant>
pub fn generate_error(response: JrpcError) -> Result<Self, ErrorVariant>
Trait Implementations§
Source§impl Clone for JrpcResponseParam
impl Clone for JrpcResponseParam
Source§fn clone(&self) -> JrpcResponseParam
fn clone(&self) -> JrpcResponseParam
Returns a duplicate of the value. Read more
1.0.0 · 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 JrpcResponseParam
impl RefUnwindSafe for JrpcResponseParam
impl Send for JrpcResponseParam
impl Sync for JrpcResponseParam
impl Unpin for JrpcResponseParam
impl UnwindSafe for JrpcResponseParam
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