Struct rustic_jsonrpc::Registry
source · pub struct Registry { /* private fields */ }Expand description
Method Registry
Implementations§
source§impl Registry
impl Registry
pub fn new() -> Self
sourcepub fn provide<T>(&mut self, v: T) -> Option<Box<T>>
pub fn provide<T>(&mut self, v: T) -> Option<Box<T>>
Provide a value of type T , which can be injected as method argument
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