pub struct BadDeviceSimulator { /* private fields */ }Implementations§
Source§impl BadDeviceSimulator
impl BadDeviceSimulator
pub async fn start( bind_addr: SocketAddr, scenario: BadDeviceScenario, ) -> Result<Self, Error>
pub fn local_addr(&self) -> SocketAddr
pub async fn stop(self)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BadDeviceSimulator
impl RefUnwindSafe for BadDeviceSimulator
impl Send for BadDeviceSimulator
impl Sync for BadDeviceSimulator
impl Unpin for BadDeviceSimulator
impl UnsafeUnpin for BadDeviceSimulator
impl UnwindSafe for BadDeviceSimulator
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