pub struct TimeToLive(/* private fields */);Expand description
DNS Cache Time-to-live, in seconds
Implementations§
Source§impl TimeToLive
impl TimeToLive
pub const MAX: TimeToLive
pub const MIN: TimeToLive
pub const ZERO: TimeToLive
Trait Implementations§
Source§impl Clone for TimeToLive
impl Clone for TimeToLive
impl Copy for TimeToLive
Source§impl Debug for TimeToLive
impl Debug for TimeToLive
Source§impl Display for TimeToLive
impl Display for TimeToLive
impl Eq for TimeToLive
Source§impl From<Duration> for TimeToLive
impl From<Duration> for TimeToLive
Source§impl From<TimeToLive> for u32
impl From<TimeToLive> for u32
Source§fn from(value: TimeToLive) -> Self
fn from(value: TimeToLive) -> Self
Converts to this type from the input type.
Source§impl From<TimeToLive> for Duration
impl From<TimeToLive> for Duration
Source§fn from(value: TimeToLive) -> Self
fn from(value: TimeToLive) -> Self
Converts to this type from the input type.
Source§impl From<u32> for TimeToLive
impl From<u32> for TimeToLive
Source§impl FromSql for TimeToLive
impl FromSql for TimeToLive
Source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
Source§impl Ord for TimeToLive
impl Ord for TimeToLive
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for TimeToLive
impl PartialEq for TimeToLive
Source§impl PartialOrd for TimeToLive
impl PartialOrd for TimeToLive
impl StructuralPartialEq for TimeToLive
Source§impl ToSql for TimeToLive
impl ToSql for TimeToLive
Source§fn to_sql(&self) -> Result<ToSqlOutput<'_>>
fn to_sql(&self) -> Result<ToSqlOutput<'_>>
Converts Rust value to SQLite value
Auto Trait Implementations§
impl Freeze for TimeToLive
impl RefUnwindSafe for TimeToLive
impl Send for TimeToLive
impl Sync for TimeToLive
impl Unpin for TimeToLive
impl UnsafeUnpin for TimeToLive
impl UnwindSafe for TimeToLive
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