pub struct BidiMouse<OT: ConnectionTransport> { /* private fields */ }Implementations§
Source§impl<OT: ConnectionTransport> BidiMouse<OT>
impl<OT: ConnectionTransport> BidiMouse<OT>
pub fn new(session: Arc<TokioMutex<BidiSession<OT>>>) -> Self
pub async fn reset(&self, context: &BrowsingContext) -> Result<(), InputError>
pub async fn move_to( &self, point: Point, context: &BrowsingContext, options: MouseMoveOptions, ) -> Result<(), InputError>
pub async fn down( &self, context: &BrowsingContext, options: MouseOptions, ) -> Result<(), InputError>
pub async fn up( &self, context: &BrowsingContext, options: MouseOptions, ) -> Result<(), InputError>
pub async fn click( &self, point: Option<Point>, context: &BrowsingContext, options: MouseClickOptions, ) -> Result<(), InputError>
pub async fn wheel( &self, context: &BrowsingContext, options: MouseWheelOptions, ) -> Result<(), InputError>
Trait Implementations§
Source§impl<OT: ConnectionTransport> Mouse for BidiMouse<OT>
impl<OT: ConnectionTransport> Mouse for BidiMouse<OT>
fn get_last_position(&self) -> Point
fn set_last_position(&self, point: Point)
async fn reset(&self, context: &BrowsingContext) -> Result<(), InputError>
async fn move_to( &self, point: Point, context: &BrowsingContext, options: MouseMoveOptions, ) -> Result<(), InputError>
async fn down( &self, context: &BrowsingContext, options: MouseOptions, ) -> Result<(), InputError>
async fn up( &self, context: &BrowsingContext, options: MouseOptions, ) -> Result<(), InputError>
async fn click( &self, point: Option<Point>, context: &BrowsingContext, options: MouseClickOptions, ) -> Result<(), InputError>
async fn wheel( &self, context: &BrowsingContext, options: MouseWheelOptions, ) -> Result<(), InputError>
Auto Trait Implementations§
impl<OT> Freeze for BidiMouse<OT>
impl<OT> !RefUnwindSafe for BidiMouse<OT>
impl<OT> Send for BidiMouse<OT>where
OT: Send,
impl<OT> Sync for BidiMouse<OT>where
OT: Send,
impl<OT> Unpin for BidiMouse<OT>
impl<OT> UnsafeUnpin for BidiMouse<OT>
impl<OT> !UnwindSafe for BidiMouse<OT>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more