#[non_exhaustive]pub enum DelayKind {
DurationElapse(Duration),
TcpConnect(SocketAddr),
UdpResponse(SocketAddr, Vec<u8>),
PathExists(PathBuf),
}
Available on crate feature
default
only.Expand description
The kind of Delay
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DurationElapse(Duration)
Delay the Command
for a fixed Duration
TcpConnect(SocketAddr)
Delay the Command
until a successful tcp connection can be established
UdpResponse(SocketAddr, Vec<u8>)
Delay the Command
until a successful udp response was received
PathExists(PathBuf)
Delay the Command
until the specified path exists
Trait Implementations§
source§impl<'de> Deserialize<'de> for DelayKind
impl<'de> Deserialize<'de> for DelayKind
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<DelayKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<DelayKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for DelayKind
impl Serialize for DelayKind
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for DelayKind
impl StructuralPartialEq for DelayKind
Auto Trait Implementations§
impl Freeze for DelayKind
impl RefUnwindSafe for DelayKind
impl Send for DelayKind
impl Sync for DelayKind
impl Unpin for DelayKind
impl UnwindSafe for DelayKind
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)