pub enum ProgressDto {
PlanComputed {
zoom_level: u8,
total_tiles: u32,
},
TileStarted {
zoom: u8,
x: u32,
y: u32,
},
TileFinished {
zoom: u8,
x: u32,
y: u32,
outcome: &'static str,
},
RegionCheckPlanned {
total_regions: u32,
},
RegionChecked {
x: u32,
y: u32,
exists: bool,
},
RoutePlanned {
total_waypoints: usize,
},
RouteWaypointResolved {
index: usize,
total: usize,
region: String,
},
RegionNamesPlanned {
total_regions: u32,
},
RegionNameResolved {
index: u32,
total: u32,
},
Done,
Error {
message: String,
},
}Expand description
Serializable view of a MapProgressEvent for the SSE stream.
The MapProgressEvent from sl-map-apis is not Serialize; this DTO
translates each variant into a JSON-friendly shape.
Variants§
PlanComputed
the rendering plan has been computed.
Fields
TileStarted
processing of a tile has started.
Fields
TileFinished
processing of a tile has finished.
Fields
RegionCheckPlanned
the renderer will check per-region existence (triggered by the
missing_region_color option). Often slower than the main tile
fetch because each check may pull several higher-zoom tiles.
RegionChecked
a region’s existence has been determined.
Fields
RoutePlanned
the route drawing phase has started.
RouteWaypointResolved
a waypoint in the route has been resolved.
Fields
RegionNamesPlanned
resolving region names for the per-region annotation overlay has started.
RegionNameResolved
one region’s name has been resolved for the overlay.
Fields
Done
the job has finished successfully.
Error
the job has finished with an error.
Trait Implementations§
Source§impl Clone for ProgressDto
impl Clone for ProgressDto
Source§fn clone(&self) -> ProgressDto
fn clone(&self) -> ProgressDto
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ProgressDto
impl Debug for ProgressDto
Source§impl From<MapProgressEvent> for ProgressDto
impl From<MapProgressEvent> for ProgressDto
Source§fn from(value: MapProgressEvent) -> Self
fn from(value: MapProgressEvent) -> Self
Auto Trait Implementations§
impl Freeze for ProgressDto
impl RefUnwindSafe for ProgressDto
impl Send for ProgressDto
impl Sync for ProgressDto
impl Unpin for ProgressDto
impl UnsafeUnpin for ProgressDto
impl UnwindSafe for ProgressDto
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.