Enum actix_settings::Timeout
source · pub enum Timeout {
Default,
Milliseconds(usize),
Seconds(usize),
}
Expand description
A timeout duration in milliseconds or seconds.
Variants§
Default
The default timeout. Depends on context.
Milliseconds(usize)
Timeout in milliseconds.
Seconds(usize)
Timeout in seconds.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Timeout
impl<'de> Deserialize<'de> for Timeout
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 Timeout
impl PartialEq for Timeout
impl Eq for Timeout
impl StructuralEq for Timeout
impl StructuralPartialEq for Timeout
Auto Trait Implementations§
impl RefUnwindSafe for Timeout
impl Send for Timeout
impl Sync for Timeout
impl Unpin for Timeout
impl UnwindSafe for Timeout
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.