pub struct RPCSender<T> { /* private fields */ }Trait Implementations§
Source§impl<S> RPCSink for RPCSender<S>
impl<S> RPCSink for RPCSender<S>
async fn send_message(&mut self, message: JSONRPCMessage) -> Result<()>
Source§async fn send_notification<T: Serialize + Send>(
&mut self,
method: &str,
notification: T,
) -> Result<()>
async fn send_notification<T: Serialize + Send>( &mut self, method: &str, notification: T, ) -> Result<()>
Send a notification to the peer.
Auto Trait Implementations§
impl<T> Freeze for RPCSender<T>where
T: Freeze,
impl<T> !RefUnwindSafe for RPCSender<T>
impl<T> Send for RPCSender<T>where
T: Send,
impl<T> Sync for RPCSender<T>where
T: Sync,
impl<T> Unpin for RPCSender<T>where
T: Unpin,
impl<T> !UnwindSafe for RPCSender<T>
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