Trait WeatherServiceInterface

Source
pub trait WeatherServiceInterface: Send + Sync {
    // Required methods
    fn get_weather(
        &self,
        location_data: Arc<LocationData>,
        time: DateTime<Tz>,
    ) -> GameResult<Weather>;
    fn get_current_weather(
        &self,
        location_data: Arc<LocationData>,
    ) -> GameResult<Weather>;
}

Required Methods§

Source

fn get_weather( &self, location_data: Arc<LocationData>, time: DateTime<Tz>, ) -> GameResult<Weather>

Source

fn get_current_weather( &self, location_data: Arc<LocationData>, ) -> GameResult<Weather>

Implementors§