Enum jsonrpc_core::types::request::Call
source · pub enum Call {
MethodCall(MethodCall),
Notification(Notification),
Invalid {
id: Id,
},
}
Expand description
Represents single jsonrpc call.
Variants§
MethodCall(MethodCall)
Call method
Notification(Notification)
Fire notification
Invalid
Invalid call
Trait Implementations§
source§impl<'de> Deserialize<'de> for Call
impl<'de> Deserialize<'de> for Call
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<MethodCall> for Call
impl From<MethodCall> for Call
source§fn from(mc: MethodCall) -> Self
fn from(mc: MethodCall) -> Self
Converts to this type from the input type.
source§impl From<Notification> for Call
impl From<Notification> for Call
source§fn from(n: Notification) -> Self
fn from(n: Notification) -> Self
Converts to this type from the input type.
source§impl PartialEq<Call> for Call
impl PartialEq<Call> for Call
impl StructuralPartialEq for Call
Auto Trait Implementations§
impl RefUnwindSafe for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnwindSafe for Call
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