pub struct TimeoutInt(/* private fields */);Trait Implementations§
Source§impl BoundedInteger for TimeoutInt
impl BoundedInteger for TimeoutInt
const MIN: Option<i128>
const MAX: Option<i128>
const DEFAULT: Option<i128>
const TYPE_DESCRIPTION: &'static str = "an integer between 0 and 7200"
fn get(&self) -> i128
fn new(value: i128) -> Result<Self, BoundedIntegerError>
fn validate(value: i128) -> Result<(), BoundedIntegerError>
Source§impl Clone for TimeoutInt
impl Clone for TimeoutInt
Source§fn clone(&self) -> TimeoutInt
fn clone(&self) -> TimeoutInt
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TimeoutInt
Source§impl Debug for TimeoutInt
impl Debug for TimeoutInt
Source§impl<'de> Deserialize<'de> for TimeoutInt
impl<'de> Deserialize<'de> for TimeoutInt
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TimeoutInt
impl PartialEq for TimeoutInt
Source§fn eq(&self, other: &TimeoutInt) -> bool
fn eq(&self, other: &TimeoutInt) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for TimeoutInt
impl PartialOrd for TimeoutInt
Source§impl Serialize for TimeoutInt
impl Serialize for TimeoutInt
impl StructuralPartialEq for TimeoutInt
Auto Trait Implementations§
impl Freeze for TimeoutInt
impl RefUnwindSafe for TimeoutInt
impl Send for TimeoutInt
impl Sync for TimeoutInt
impl Unpin for TimeoutInt
impl UnsafeUnpin for TimeoutInt
impl UnwindSafe for TimeoutInt
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