pub trait DriverTrait {
Show 34 methods fn create_text(&self, id: RealDomId, value: &str);
fn update_text(&self, id: RealDomId, value: &str);
fn remove_text(&self, id: RealDomId);
fn create_node(&self, id: RealDomId, name: &'static str);
fn rename_node(&self, id: RealDomId, new_name: &'static str);
fn set_attr(&self, id: RealDomId, key: &'static str, value: &str);
fn remove_attr(&self, id: RealDomId, name: &'static str);
fn remove_node(&self, id: RealDomId);
fn insert_before(
        &self,
        parent: RealDomId,
        child: RealDomId,
        ref_id: Option<RealDomId>
    );
fn insert_css(&self, selector: &str, value: &str);
fn set_event(&self, node: RealDomId, callback: EventCallback);
fn get_bounding_client_rect_x(&self, id: RealDomId) -> i32;
fn get_bounding_client_rect_y(&self, id: RealDomId) -> i32;
fn get_bounding_client_rect_width(&self, id: RealDomId) -> u32;
fn get_bounding_client_rect_height(&self, id: RealDomId) -> u32;
fn scroll_top(&self, id: RealDomId) -> i32;
fn set_scroll_top(&self, id: RealDomId, value: i32);
fn scroll_left(&self, id: RealDomId) -> i32;
fn set_scroll_left(&self, id: RealDomId, value: i32);
fn scroll_width(&self, id: RealDomId) -> u32;
fn scroll_height(&self, id: RealDomId) -> u32;
fn fetch(
        &self,
        method: FetchMethod,
        url: String,
        headers: Option<HashMap<String, String>>,
        body: Option<String>
    ) -> Pin<Box<dyn Future<Output = FetchResult> + 'static>>;
fn cookie_get(&self, cname: &str) -> String;
fn cookie_set(&self, cname: &str, cvalue: &str, expires_in: u64);
fn get_hash_location(&self) -> String;
fn push_hash_location(&self, path: &str);
fn on_hash_route_change(
        &self,
        on_change: Box<dyn Fn(&String)>
    ) -> DropResource;
fn set_interval(&self, time: u32, func: Box<dyn Fn()>) -> DropResource;
fn now(&self) -> InstantType;
fn websocket(
        &self,
        host: String,
        callback: Box<dyn Fn(WebsocketMessageDriver)>
    ) -> DropResource;
fn websocket_send_message(&self, callback_id: u32, message: String);
fn push_ref_context(&self, context: RefsContext);
fn flush_update(&self);
fn spawn(&self, fut: Pin<Box<dyn Future<Output = ()> + 'static>>);
}

Required methods

Implementors