Struct jsonrpsee_core::server::helpers::MethodSinkPermit
source · pub struct MethodSinkPermit { /* private fields */ }
Available on crate feature
server
only.Expand description
A method sink with reserved spot in the bounded queue.
Implementations§
source§impl MethodSinkPermit
impl MethodSinkPermit
sourcepub fn send_error(self, id: Id<'_>, err: ErrorObject<'_>)
pub fn send_error(self, id: Id<'_>, err: ErrorObject<'_>)
Send a JSON-RPC error to the client
sourcepub fn send_call_error(self, id: Id<'_>, err: Error)
pub fn send_call_error(self, id: Id<'_>, err: Error)
Helper for sending the general purpose Error
as a JSON-RPC errors to the client.