#[non_exhaustive]pub enum Injection {
Fault {
service: String,
action: String,
code: u16,
},
Delay(Duration),
DiscardWrites,
LockLogin,
}Expand description
A change to how the simulator behaves, until cleared.
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.
Fault
Calls of an action fail with a UPnP error once their arguments are
valid. service is any reference Service::matches accepts, like
WLANConfiguration1.
Delay(Duration)
Every response is sent after a delay, to make clients time out.
DiscardWrites
Writes succeed, but change nothing.
LockLogin
The account is locked: every login fails, even with the right password.
Implementations§
Trait Implementations§
impl Eq for Injection
impl StructuralPartialEq for Injection
Auto Trait Implementations§
impl Forget for Injection
impl Freeze for Injection
impl Move for Injection
impl RefUnwindSafe for Injection
impl Send for Injection
impl Sync for Injection
impl Unpin for Injection
impl UnsafeUnpin for Injection
impl UnwindSafe for Injection
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