Enum test::test::RunStrategy
source · pub enum RunStrategy {
InProcess,
SpawnPrimary,
}
🔬This is a nightly-only experimental API. (
test
)Variants§
InProcess
🔬This is a nightly-only experimental API. (
test
)在当前进程中运行测试,并将结果通过提供的通道发送回去。
SpawnPrimary
🔬This is a nightly-only experimental API. (
test
)产生一个子进程来运行测试,并将结果通过提供的通道发送回去。
需要 argv[0]
存在并指向当前正在运行的二进制文件。
Trait Implementations§
source§impl Clone for RunStrategy
impl Clone for RunStrategy
source§fn clone(&self) -> RunStrategy
fn clone(&self) -> RunStrategy
返回值的副本。 Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
从
source
执行复制分配。 Read moreimpl Copy for RunStrategy
Auto Trait Implementations§
impl RefUnwindSafe for RunStrategy
impl Send for RunStrategy
impl Sync for RunStrategy
impl Unpin for RunStrategy
impl UnwindSafe for RunStrategy
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
从拥有的值中借用。 Read more