pub struct Registry { /* private fields */ }
Expand description
The Registry
struct maintains a collection of RPC methods and a dependency injection container.
Implementations§
Source§impl Registry
impl Registry
Sourcepub fn post_call(
&mut self,
func: impl for<'a> Fn(&'a Request<'a>, &'a Result<Value, BoxError>) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>> + Send + Sync + 'static,
)
pub fn post_call( &mut self, func: impl for<'a> Fn(&'a Request<'a>, &'a Result<Value, BoxError>) -> Pin<Box<dyn Future<Output = ()> + Send + 'a>> + Send + Sync + 'static, )
Sets a function to be called after each RPC call.
Methods from Deref<Target = Container>§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Registry
impl !RefUnwindSafe for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl !UnwindSafe for Registry
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