pub struct NativeServoAdapter { /* private fields */ }Implementations§
Source§impl NativeServoAdapter
impl NativeServoAdapter
pub fn new(config: NativeServoConfig) -> Result<Self, String>
pub fn spin_until_frame(&self, timeout: Duration)
pub fn pump(&self, timeout: Duration) -> bool
pub fn capture(&self) -> Result<NativeServoFrame, String>
pub fn tabs(&self) -> Vec<NativeTabInfo>
pub fn switch_tab(&self, index: usize)
pub fn new_tab(&self, url: &str)
pub fn close_active_tab(&self)
pub fn load_url(&self, url: &str) -> Result<(), String>
pub fn resize(&self, width: u32, height: u32)
pub fn mouse_move(&self, x: u32, y: u32)
pub fn wheel(&self, dx: i32, dy: i32, x: u32, y: u32)
pub fn insert_text(&self, text: &str)
pub fn key_press(&self, key: NativeKey)
Auto Trait Implementations§
impl Freeze for NativeServoAdapter
impl RefUnwindSafe for NativeServoAdapter
impl Send for NativeServoAdapter
impl Sync for NativeServoAdapter
impl Unpin for NativeServoAdapter
impl UnsafeUnpin for NativeServoAdapter
impl UnwindSafe for NativeServoAdapter
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