pub struct Handle<H: FnMut(&dyn Point, Option<&WatchIDRef>) -> ControlFlow<()>, S: FnMut(&LkQuery, StopReason, u64, u64)> {
pub on_point: H,
pub on_close: S,
}
Fields§
§on_point: H
§on_close: S
Trait Implementations§
Source§impl<H: Clone + FnMut(&dyn Point, Option<&WatchIDRef>) -> ControlFlow<()>, S: Clone + FnMut(&LkQuery, StopReason, u64, u64)> Clone for Handle<H, S>
impl<H: Clone + FnMut(&dyn Point, Option<&WatchIDRef>) -> ControlFlow<()>, S: Clone + FnMut(&LkQuery, StopReason, u64, u64)> Clone for Handle<H, S>
Source§impl<H: Debug + FnMut(&dyn Point, Option<&WatchIDRef>) -> ControlFlow<()>, S: Debug + FnMut(&LkQuery, StopReason, u64, u64)> Debug for Handle<H, S>
impl<H: Debug + FnMut(&dyn Point, Option<&WatchIDRef>) -> ControlFlow<()>, S: Debug + FnMut(&LkQuery, StopReason, u64, u64)> Debug for Handle<H, S>
Source§impl<H, S> PointHandler for Handle<H, S>where
H: FnMut(&dyn Point, Option<&WatchIDRef>) -> ControlFlow<()>,
S: FnMut(&LkQuery, StopReason, u64, u64),
impl<H, S> PointHandler for Handle<H, S>where
H: FnMut(&dyn Point, Option<&WatchIDRef>) -> ControlFlow<()>,
S: FnMut(&LkQuery, StopReason, u64, u64),
impl<H: Copy + FnMut(&dyn Point, Option<&WatchIDRef>) -> ControlFlow<()>, S: Copy + FnMut(&LkQuery, StopReason, u64, u64)> Copy for Handle<H, S>
Auto Trait Implementations§
impl<H, S> Freeze for Handle<H, S>
impl<H, S> RefUnwindSafe for Handle<H, S>where
H: RefUnwindSafe,
S: RefUnwindSafe,
impl<H, S> Send for Handle<H, S>
impl<H, S> Sync for Handle<H, S>
impl<H, S> Unpin for Handle<H, S>
impl<H, S> UnwindSafe for Handle<H, S>where
H: UnwindSafe,
S: UnwindSafe,
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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