Trait vertigo::DomDriverTrait[][src]

pub trait DomDriverTrait {
    fn create_node(&self, id: RealDomId, name: &'static str);
fn create_text(&self, id: RealDomId, value: &str);
fn update_text(&self, id: RealDomId, value: &str);
fn set_attr(&self, id: RealDomId, key: &'static str, value: &str);
fn remove_attr(&self, id: RealDomId, name: &'static str);
fn remove(&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 fetch(
        &self,
        method: FetchMethod,
        url: String,
        headers: Option<HashMap<String, String>>,
        body: Option<String>
    ) -> Pin<Box<dyn Future<Output = Result<String, FetchError>> + 'static>>;
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)>
    ) -> HashRoutingReceiver;
fn clear_hash_route_callback(&self);
fn set_interval(&self, time: u32, func: Box<dyn Fn()>) -> DropResource; }

Required methods

fn create_node(&self, id: RealDomId, name: &'static str)[src]

fn create_text(&self, id: RealDomId, value: &str)[src]

fn update_text(&self, id: RealDomId, value: &str)[src]

fn set_attr(&self, id: RealDomId, key: &'static str, value: &str)[src]

fn remove_attr(&self, id: RealDomId, name: &'static str)[src]

fn remove(&self, id: RealDomId)[src]

fn insert_before(
    &self,
    parent: RealDomId,
    child: RealDomId,
    ref_id: Option<RealDomId>
)
[src]

fn insert_css(&self, selector: &str, value: &str)[src]

fn set_event(&self, node: RealDomId, callback: EventCallback)[src]

fn fetch(
    &self,
    method: FetchMethod,
    url: String,
    headers: Option<HashMap<String, String>>,
    body: Option<String>
) -> Pin<Box<dyn Future<Output = Result<String, FetchError>> + 'static>>
[src]

fn get_hash_location(&self) -> String[src]

fn push_hash_location(&self, path: &str)[src]

fn on_hash_route_change(
    &self,
    on_change: Box<dyn Fn(String)>
) -> HashRoutingReceiver
[src]

fn clear_hash_route_callback(&self)[src]

fn set_interval(&self, time: u32, func: Box<dyn Fn()>) -> DropResource[src]

Loading content...

Implementors

Loading content...