pub struct Sim { /* private fields */ }Expand description
A running sim. It stops when dropped.
Implementations§
Source§impl Sim
impl Sim
Sourcepub async fn start() -> Self
pub async fn start() -> Self
Starts a sim on a free port of 127.0.0.1, on the current Tokio runtime.
§Panics
If no loopback port can be bound.
Sourcepub fn latest_url(&self) -> String
pub fn latest_url(&self) -> String
The base URL of version 2.52.
pub fn inject(&self, injection: Injection)
Trait Implementations§
Auto Trait Implementations§
impl Forget for Sim
impl Freeze for Sim
impl Move for Sim
impl RefUnwindSafe for Simwhere
Atomic<usize>: RefUnwindSafe,
Mutex<Inner>: RefUnwindSafe,
JoinHandle<Result<(), Error>>: RefUnwindSafe,
impl Send for Sim
impl Sync for Sim
impl Unpin for Sim
impl UnsafeUnpin for Simwhere
*const ArcInner<Mutex<Inner>> is !null: UnsafeUnpin,
PhantomData<ArcInner<Mutex<Inner>>>: UnsafeUnpin,
*const Header is !null: UnsafeUnpin,
PhantomData<Result<(), Error>>: UnsafeUnpin,
impl UnwindSafe for Sim
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