pub struct FuchsiaMouseEventToLinuxMouseEventConverter { /* private fields */ }Implementations§
Source§impl FuchsiaMouseEventToLinuxMouseEventConverter
impl FuchsiaMouseEventToLinuxMouseEventConverter
pub fn create() -> Self
Sourcepub fn handle(
&mut self,
mouse_events: Vec<FidlMouseEvent>,
) -> LinuxMouseEventBatch
pub fn handle( &mut self, mouse_events: Vec<FidlMouseEvent>, ) -> LinuxMouseEventBatch
Converts a batch of FIDL mouse events to Linux input events in a single pass.
TODO(https://fxbug.dev/563345995): Batching was introduced as a performance enhancement for scroll wheel events. Aggregating pointer and button events the same way can have unintended effects: rapid click sequences may be collapsed, and relative motion deltas that negate one another within a batch sum to zero and are dropped entirely. Revisit before this path becomes load bearing.
Trait Implementations§
impl StructuralPartialEq for FuchsiaMouseEventToLinuxMouseEventConverter
Auto Trait Implementations§
impl Freeze for FuchsiaMouseEventToLinuxMouseEventConverter
impl RefUnwindSafe for FuchsiaMouseEventToLinuxMouseEventConverter
impl Send for FuchsiaMouseEventToLinuxMouseEventConverter
impl Sync for FuchsiaMouseEventToLinuxMouseEventConverter
impl Unpin for FuchsiaMouseEventToLinuxMouseEventConverter
impl UnsafeUnpin for FuchsiaMouseEventToLinuxMouseEventConverter
impl UnwindSafe for FuchsiaMouseEventToLinuxMouseEventConverter
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous1, D> for Twhere
D: ResourceDialect,
§impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
impl<T, D> Encode<Ambiguous2, D> for Twhere
D: ResourceDialect,
§impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
impl<F, N> FidlIntoNative<Box<N>> for Fwhere
F: FidlIntoNative<N>,
fn fidl_into_native(self) -> Box<N>
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