pub struct RpcInstanceRegistry { /* private fields */ }Implementations§
Source§impl RpcInstanceRegistry
impl RpcInstanceRegistry
pub fn new() -> Self
pub fn register(&self, instance: JsValue) -> RpcInstanceHandle
pub fn get(&self, handle: &RpcInstanceHandle) -> Option<JsValue>
pub fn release(&self, handle: &RpcInstanceHandle) -> bool
Trait Implementations§
Source§impl Debug for RpcInstanceRegistry
impl Debug for RpcInstanceRegistry
Source§impl Default for RpcInstanceRegistry
impl Default for RpcInstanceRegistry
Source§fn default() -> RpcInstanceRegistry
fn default() -> RpcInstanceRegistry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for RpcInstanceRegistry
impl RefUnwindSafe for RpcInstanceRegistry
impl Send for RpcInstanceRegistry
impl Sync for RpcInstanceRegistry
impl Unpin for RpcInstanceRegistry
impl UnsafeUnpin for RpcInstanceRegistry
impl UnwindSafe for RpcInstanceRegistry
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