pub enum RuntimeEventType {
Show 26 variants
MapCameraWillChange,
MapCameraIsChanging,
MapCameraDidChange,
MapStyleLoaded,
MapLoadingStarted,
MapLoadingFinished,
MapLoadingFailed,
MapIdle,
MapRenderError,
MapRenderFrameStarted,
MapRenderFrameFinished,
MapRenderMapStarted,
MapRenderMapFinished,
MapStyleImageMissing,
MapTileAction,
MapSourceChanged,
OfflineRegionStatusChanged,
OfflineRegionResponseError,
OfflineRegionTileCountLimitExceeded,
MapGlyphsRequested,
MapGlyphsLoaded,
MapGlyphsError,
MapSpriteRequested,
MapSpriteLoaded,
MapSpriteError,
Unknown(u32),
}Expand description
The kind of an event.
Only maps in MapMode::Continuous raise
RuntimeEventType::MapLoadingFinished, RuntimeEventType::MapIdle, and the
render frame and render map events. Offline region events come only for the
regions and types that RuntimeHandle::set_offline_region_observed()
selects.
See mln_runtime_event_type in the
C API reference.
Variants§
MapCameraWillChange
MapCameraIsChanging
MapCameraDidChange
MapStyleLoaded
MapLoadingStarted
The map started to load a style.
MapLoadingFinished
The map loaded its style and everything that the current view needs, and rendered the result.
MapLoadingFailed
The map failed to load a style.
MapIdle
The map rendered a complete frame and has nothing left to load, animate, or redraw.
MapRenderError
MapRenderFrameStarted
MapRenderFrameFinished
MapRenderMapStarted
MapRenderMapFinished
MapStyleImageMissing
The style uses an image that it doesn’t have.
MapTileAction
A tile moved to another step of loading.
MapSourceChanged
A source in the style changed, such as when its TileJSON loads.
OfflineRegionStatusChanged
OfflineRegionResponseError
A resource that the region needs failed to download.
OfflineRegionTileCountLimitExceeded
The region’s download became inactive because the cache file’s offline
regions hold as many tiles from MapLibre’s demo tile server as the limit
allows. Only tiles of sources with a maplibre:// URL count toward the
limit.
MapGlyphsRequested
MapGlyphsLoaded
MapGlyphsError
MapSpriteRequested
MapSpriteLoaded
MapSpriteError
Unknown(u32)
Implementations§
Trait Implementations§
Source§impl Clone for RuntimeEventType
impl Clone for RuntimeEventType
Source§fn clone(&self) -> RuntimeEventType
fn clone(&self) -> RuntimeEventType
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 RuntimeEventType
Source§impl Debug for RuntimeEventType
impl Debug for RuntimeEventType
impl Eq for RuntimeEventType
Source§impl Hash for RuntimeEventType
impl Hash for RuntimeEventType
Source§impl PartialEq for RuntimeEventType
impl PartialEq for RuntimeEventType
impl StructuralPartialEq for RuntimeEventType
Auto Trait Implementations§
impl Freeze for RuntimeEventType
impl RefUnwindSafe for RuntimeEventType
impl Send for RuntimeEventType
impl Sync for RuntimeEventType
impl Unpin for RuntimeEventType
impl UnsafeUnpin for RuntimeEventType
impl UnwindSafe for RuntimeEventType
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