Struct RegistryHandle
pub struct RegistryHandle {
pub(crate) core: Arc<Core>,
}Fields§
§core: Arc<Core>Implementations§
§impl RegistryHandle
impl RegistryHandle
pub fn new() -> Self
pub async fn call_service( &self, name: &Symbol, input: Fields, ) -> Result<Object, Error>
pub fn register_service<H>(
&self,
name: Symbol,
signature: ServiceSignature,
handler: H,
) -> Result<()>where
H: ServiceHandler,
pub fn build_script( &self, template: ScriptTemplate, input_signature: &FieldsSig, ) -> Result<Script>
Trait Implementations§
§impl Clone for RegistryHandle
impl Clone for RegistryHandle
§fn clone(&self) -> RegistryHandle
fn clone(&self) -> RegistryHandle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RegistryHandle
impl RefUnwindSafe for RegistryHandle
impl Send for RegistryHandle
impl Sync for RegistryHandle
impl Unpin for RegistryHandle
impl UnwindSafe for RegistryHandle
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