pub struct WeatherSystem { /* private fields */ }Implementations§
Source§impl WeatherSystem
impl WeatherSystem
pub fn new(config: WeatherSystemConfig) -> Self
Sourcepub fn light_level(time: DateTime<Tz>) -> f32
pub fn light_level(time: DateTime<Tz>) -> f32
Ensures its hottest at the middle of the day
pub fn get_weather_attributes(&self, time: DateTime<Tz>) -> WeatherAttributes
pub fn get_weather(&self, time: DateTime<Tz>, time_multiplier: f32) -> Weather
Auto Trait Implementations§
impl Freeze for WeatherSystem
impl RefUnwindSafe for WeatherSystem
impl Send for WeatherSystem
impl Sync for WeatherSystem
impl Unpin for WeatherSystem
impl UnwindSafe for WeatherSystem
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> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more