pub struct EncounterService { /* private fields */ }Implementations§
Source§impl EncounterService
impl EncounterService
pub fn new(config: Arc<dyn ConfigInterface>) -> Self
Trait Implementations§
Source§impl EncounterServiceInterface for EncounterService
impl EncounterServiceInterface for EncounterService
fn roll_encounter( &self, time: DateTime<Tz>, weather: Weather, location_id: i32, ) -> GameResult<i32>
Auto Trait Implementations§
impl Freeze for EncounterService
impl RefUnwindSafe for EncounterService
impl Send for EncounterService
impl Sync for EncounterService
impl Unpin for EncounterService
impl UnwindSafe for EncounterService
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