pub struct OfflineRegionStatus {
pub download_state: OfflineRegionDownloadState,
pub completed_resource_count: u64,
pub completed_resource_size: u64,
pub completed_tile_count: u64,
pub required_tile_count: u64,
pub completed_tile_size: u64,
pub required_resource_count: u64,
pub required_resource_count_is_precise: bool,
pub complete: bool,
}Expand description
The download progress of an offline region.
See mln_offline_region_status in the
C API reference.
Fields§
§download_state: OfflineRegionDownloadState§completed_resource_count: u64The resources downloaded so far, tiles included.
completed_resource_size: u64The size of the downloaded resources in bytes, tiles included.
completed_tile_count: u64§required_tile_count: u64§completed_tile_size: u64The size of the downloaded tiles in bytes.
required_resource_count: u64The resources that the region needs, tiles included. Until
required_resource_count_is_precise is true, this is only a lower
bound.
required_resource_count_is_precise: bool§complete: boolWhether the region has downloaded every resource it needs.
Trait Implementations§
Source§impl Clone for OfflineRegionStatus
impl Clone for OfflineRegionStatus
Source§fn clone(&self) -> OfflineRegionStatus
fn clone(&self) -> OfflineRegionStatus
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 moreimpl Copy for OfflineRegionStatus
Source§impl Debug for OfflineRegionStatus
impl Debug for OfflineRegionStatus
Source§impl Default for OfflineRegionStatus
impl Default for OfflineRegionStatus
Source§fn default() -> OfflineRegionStatus
fn default() -> OfflineRegionStatus
Returns the “default value” for a type. Read more
Source§impl PartialEq for OfflineRegionStatus
impl PartialEq for OfflineRegionStatus
impl StructuralPartialEq for OfflineRegionStatus
Auto Trait Implementations§
impl Freeze for OfflineRegionStatus
impl RefUnwindSafe for OfflineRegionStatus
impl Send for OfflineRegionStatus
impl Sync for OfflineRegionStatus
impl Unpin for OfflineRegionStatus
impl UnsafeUnpin for OfflineRegionStatus
impl UnwindSafe for OfflineRegionStatus
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