pub struct JsonRpcNotification<'a> {
pub jsonrpc: &'static str,
pub method: &'a str,
pub params: Option<Value>,
}Expand description
Outbound JSON-RPC 2.0 notification envelope (no id).
Fields§
§jsonrpc: &'static str§method: &'a str§params: Option<Value>Trait Implementations§
Source§impl<'a> Clone for JsonRpcNotification<'a>
impl<'a> Clone for JsonRpcNotification<'a>
Source§impl<'a> Debug for JsonRpcNotification<'a>
impl<'a> Debug for JsonRpcNotification<'a>
Auto Trait Implementations§
impl<'a> Forget for JsonRpcNotification<'a>
impl<'a> Freeze for JsonRpcNotification<'a>where
&'static str: Freeze,
&'a str: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
PhantomData<usize>: Freeze,
PhantomData<Bucket<String, Value>>: Freeze,
impl<'a> Move for JsonRpcNotification<'a>
impl<'a> RefUnwindSafe for JsonRpcNotification<'a>
impl<'a> Send for JsonRpcNotification<'a>
impl<'a> Sync for JsonRpcNotification<'a>
impl<'a> Unpin for JsonRpcNotification<'a>
impl<'a> UnsafeUnpin for JsonRpcNotification<'a>where
&'static str: UnsafeUnpin,
&'a str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
PhantomData<Bucket<String, Value>>: UnsafeUnpin,
impl<'a> UnwindSafe for JsonRpcNotification<'a>where
&'static str: UnwindSafe,
&'a str: UnwindSafe,
RawVecInner: UnwindSafe,
NonNull<u8>: UnwindSafe,
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