pub enum CameraTransitionOutcome {
Completed,
Cancelled,
Closed,
Replaced,
Unknown(u32),
}Expand description
How a camera change ended.
A change that ends in more than one way reports
CameraTransitionOutcome::Cancelled if any of it was cancelled, and
otherwise CameraTransitionOutcome::Replaced if any of it was replaced.
See mln_camera_transition_outcome in the
C API reference.
Variants§
Completed
The camera finished the change.
Cancelled
MapHandle::cancel_camera_transitions(),
MapHandle::cancel_camera_transitions_with_id(), a gesture’s
GesturePhase::Begin or GesturePhase::Cancel,
MapHandle::set_free_camera_options(), or a resize that moved the
camera back inside its bounds stopped the change. A command that fails
before it moves the camera also reports this.
Closed
The map closed before the change ended.
Replaced
A later camera change set every field that a part of the change was still animating, so that part stopped. Its other parts keep animating, and the change reports this outcome when they end, unless one was cancelled.
A later change that sets only some of those fields leaves the change animating the rest. A fly’s center and zoom count as one field, and so do an anchored change’s center and the fields that the anchor holds in place.
Unknown(u32)
Implementations§
Trait Implementations§
Source§impl Clone for CameraTransitionOutcome
impl Clone for CameraTransitionOutcome
Source§fn clone(&self) -> CameraTransitionOutcome
fn clone(&self) -> CameraTransitionOutcome
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for CameraTransitionOutcome
Source§impl Debug for CameraTransitionOutcome
impl Debug for CameraTransitionOutcome
Source§impl Default for CameraTransitionOutcome
impl Default for CameraTransitionOutcome
impl Eq for CameraTransitionOutcome
Source§impl Hash for CameraTransitionOutcome
impl Hash for CameraTransitionOutcome
Source§impl PartialEq for CameraTransitionOutcome
impl PartialEq for CameraTransitionOutcome
impl StructuralPartialEq for CameraTransitionOutcome
Auto Trait Implementations§
impl Freeze for CameraTransitionOutcome
impl RefUnwindSafe for CameraTransitionOutcome
impl Send for CameraTransitionOutcome
impl Sync for CameraTransitionOutcome
impl Unpin for CameraTransitionOutcome
impl UnsafeUnpin for CameraTransitionOutcome
impl UnwindSafe for CameraTransitionOutcome
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
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> ⓘ
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> ⓘ
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