[−]Struct sudoku_backend::util::ACTIVITY_TIMEOUT_DEFAULT
The time a session must be inactive (not make any requests) for before it's considered inactive.
Methods from Deref<Target = Duration>
pub fn num_weeks(&self) -> i64[src]
pub fn num_weeks(&self) -> i64Returns the total number of whole weeks in the duration.
pub fn num_days(&self) -> i64[src]
pub fn num_days(&self) -> i64Returns the total number of whole days in the duration.
pub fn num_hours(&self) -> i64[src]
pub fn num_hours(&self) -> i64Returns the total number of whole hours in the duration.
pub fn num_minutes(&self) -> i64[src]
pub fn num_minutes(&self) -> i64Returns the total number of whole minutes in the duration.
pub fn num_seconds(&self) -> i64[src]
pub fn num_seconds(&self) -> i64Returns the total number of whole seconds in the duration.
pub fn num_milliseconds(&self) -> i64[src]
pub fn num_milliseconds(&self) -> i64Returns the total number of whole milliseconds in the duration,
pub fn num_microseconds(&self) -> Option<i64>[src]
pub fn num_microseconds(&self) -> Option<i64>Returns the total number of whole microseconds in the duration,
or None on overflow (exceeding 263 microseconds in either direction).
pub fn num_nanoseconds(&self) -> Option<i64>[src]
pub fn num_nanoseconds(&self) -> Option<i64>Returns the total number of whole nanoseconds in the duration,
or None on overflow (exceeding 263 nanoseconds in either direction).
pub fn checked_add(&self, rhs: &Duration) -> Option<Duration>[src]
pub fn checked_add(&self, rhs: &Duration) -> Option<Duration>Add two durations, returning None if overflow occurred.
pub fn checked_sub(&self, rhs: &Duration) -> Option<Duration>[src]
pub fn checked_sub(&self, rhs: &Duration) -> Option<Duration>Subtract two durations, returning None if overflow occurred.
pub fn is_zero(&self) -> bool[src]
pub fn is_zero(&self) -> boolReturns true if the duration equals Duration::zero().
pub fn to_std(&self) -> Result<Duration, OutOfRangeError>[src]
pub fn to_std(&self) -> Result<Duration, OutOfRangeError>Creates a std::time::Duration object from time::Duration
This function errors when duration is less than zero. As standard library implementation is limited to non-negative values.
Trait Implementations
impl Deref for ACTIVITY_TIMEOUT_DEFAULT
impl Deref for ACTIVITY_TIMEOUT_DEFAULTimpl LazyStatic for ACTIVITY_TIMEOUT_DEFAULT
impl LazyStatic for ACTIVITY_TIMEOUT_DEFAULTfn initialize(lazy: &Self)
fn initialize(lazy: &Self)Auto Trait Implementations
impl Send for ACTIVITY_TIMEOUT_DEFAULT
impl Send for ACTIVITY_TIMEOUT_DEFAULTimpl Sync for ACTIVITY_TIMEOUT_DEFAULT
impl Sync for ACTIVITY_TIMEOUT_DEFAULTBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeIdimpl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, fn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut Timpl<T> Typeable for T where
T: Any, [src]
impl<T> Typeable for T where
T: Any, impl<T> IntoSql for T[src]
impl<T> IntoSql for Tfn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>, [src]
fn into_sql<T>(self) -> Self::Expression where
Self: AsExpression<T>, Convert self to an expression for Diesel's query builder. Read more
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>, [src]
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression where
&'a Self: AsExpression<T>, Convert &self to an expression for Diesel's query builder. Read more