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
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for MethodSinkPermit
impl Send for MethodSinkPermit
impl Sync for MethodSinkPermit
impl Unpin for MethodSinkPermit
impl !UnwindSafe for MethodSinkPermit
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