pub trait OfflineRegionObserver {
// Provided methods
fn status_changed(&self, _status: OfflineRegionStatus) { ... }
fn response_error(&self, _error: ResourceError) { ... }
}Expand description
A region can have a single observer, which gets notified whenever a
change to the region’s status occurs. The methods run on the database
thread. They take &self: the download calls them re-entrantly, e.g. an
observer that deactivates the download from status_changed gets a
nested status_changed.
Provided Methods§
Sourcefn status_changed(&self, _status: OfflineRegionStatus)
fn status_changed(&self, _status: OfflineRegionStatus)
Notified of a change in the status of an offline region.
Sourcefn response_error(&self, _error: ResourceError)
fn response_error(&self, _error: ResourceError)
Notified of errors encountered while downloading regional resources.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".