Struct pyo3_asyncio::testing::Test[][src]

pub struct Test {
    pub name: String,
    pub test_fn: &'static (dyn Fn() -> Pin<Box<dyn Future<Output = PyResult<()>> + Send>> + Send + Sync),
}

The structure used by the #[test] macros to provide a test to the pyo3-asyncio test harness.

Fields

name: String

The fully qualified name of the test

test_fn: &'static (dyn Fn() -> Pin<Box<dyn Future<Output = PyResult<()>> + Send>> + Send + Sync)

The function used to create the task that runs the test.

Implementations

impl Test[src]

pub fn task(&self) -> Pin<Box<dyn Future<Output = PyResult<()>> + Send>>[src]

Create the task that runs the test

Trait Implementations

impl Clone for Test[src]

impl Collect for Test[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.