pub enum DelayType {
Fixed(Duration),
Random(Range<Duration>),
}Expand description
The type of delay (fixed or random) to apply to message relay.
Variants§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DelayType
impl<'de> Deserialize<'de> for DelayType
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
impl Eq for DelayType
impl StructuralPartialEq for DelayType
Auto Trait Implementations§
impl Freeze for DelayType
impl RefUnwindSafe for DelayType
impl Send for DelayType
impl Sync for DelayType
impl Unpin for DelayType
impl UnwindSafe for DelayType
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.