pub enum DataProviderImpl {
NatAttempts(NatAttemptsDataProvider),
NatResults(NatResultsDataProvider),
Health(HealthDataProvider),
}Expand description
Enum for concrete data provider implementations
Variants§
Implementations§
Source§impl DataProviderImpl
impl DataProviderImpl
Sourcepub async fn fetch_data(
&self,
query: &str,
) -> Result<WidgetData, MonitoringError>
pub async fn fetch_data( &self, query: &str, ) -> Result<WidgetData, MonitoringError>
Fetch data based on the query string
Sourcepub async fn refresh(&self) -> Result<(), MonitoringError>
pub async fn refresh(&self) -> Result<(), MonitoringError>
Refresh the data provider’s internal state
Trait Implementations§
Source§impl Clone for DataProviderImpl
impl Clone for DataProviderImpl
Source§fn clone(&self) -> DataProviderImpl
fn clone(&self) -> DataProviderImpl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DataProviderImpl
impl RefUnwindSafe for DataProviderImpl
impl Send for DataProviderImpl
impl Sync for DataProviderImpl
impl Unpin for DataProviderImpl
impl UnwindSafe for DataProviderImpl
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