pub struct CameraTransitionHandler {
pub callback: Option<Arc<dyn Fn(CameraTransitionEnd) + Send + Sync + 'static>>,
}Expand description
A callback for the end of a camera change, for AnimationOptions.
The callback runs once for each camera command, after every part of the change that the command started has ended.
See mln_camera_transition_handler in the
C API reference.
Fields§
§callback: Option<Arc<dyn Fn(CameraTransitionEnd) + Send + Sync + 'static>>The callback receives (end).
Implementations§
Source§impl CameraTransitionHandler
impl CameraTransitionHandler
pub fn with_callback<F>(self, callback: F) -> Self
pub fn new<F>(callback: F) -> Self
Trait Implementations§
Source§impl Clone for CameraTransitionHandler
impl Clone for CameraTransitionHandler
Source§fn clone(&self) -> CameraTransitionHandler
fn clone(&self) -> CameraTransitionHandler
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CameraTransitionHandler
impl Debug for CameraTransitionHandler
Source§impl Default for CameraTransitionHandler
impl Default for CameraTransitionHandler
Source§fn default() -> CameraTransitionHandler
fn default() -> CameraTransitionHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for CameraTransitionHandler
impl !UnwindSafe for CameraTransitionHandler
impl Freeze for CameraTransitionHandler
impl Send for CameraTransitionHandler
impl Sync for CameraTransitionHandler
impl Unpin for CameraTransitionHandler
impl UnsafeUnpin for CameraTransitionHandler
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> ErasedDestructor for Twhere
T: 'static,
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