Trait HostObjectImpl

Source
pub trait HostObjectImpl {
    // Required methods
    fn get(
        &mut self,
        rt: Pin<&mut Runtime>,
        name: &PropNameID,
    ) -> Result<UniquePtr<JsiValue>>;
    fn set(
        &mut self,
        rt: Pin<&mut Runtime>,
        name: &PropNameID,
        value: &JsiValue,
    ) -> Result<()>;
    fn properties(
        &mut self,
        rt: Pin<&mut Runtime>,
    ) -> Vec<UniquePtr<PropNameID>>;
}

Required Methods§

Source

fn get( &mut self, rt: Pin<&mut Runtime>, name: &PropNameID, ) -> Result<UniquePtr<JsiValue>>

Source

fn set( &mut self, rt: Pin<&mut Runtime>, name: &PropNameID, value: &JsiValue, ) -> Result<()>

Source

fn properties(&mut self, rt: Pin<&mut Runtime>) -> Vec<UniquePtr<PropNameID>>

Implementors§