[][src]Struct async_test::TestCase

pub struct TestCase { /* fields omitted */ }

An async testcase that can be written to and read from.

Methods

impl TestCase[src]

pub async fn new<'_, '_>(reader: &'_ str, writer: &'_ str) -> TestCase[src]

Create a new instance.

pub async fn writer<'_>(&'_ self) -> String[src]

Get the value of the "writer" string.

pub async fn assert_reader<'_, '_>(&'_ self, rhs: &'_ str)[src]

Assert the reader.

pub async fn assert_reader_with<'_, '_>(
    &'_ self,
    rhs: &'_ str,
    f: impl Fn(&mut String, &mut String)
)
[src]

Assert the reader but pass it through a closure first..

pub async fn assert_writer<'_, '_>(&'_ self, rhs: &'_ str)[src]

Assert the writer.

pub async fn assert_writer_with<'_, '_>(
    &'_ self,
    rhs: &'_ str,
    f: impl Fn(&mut String, &mut String)
)
[src]

Assert the reader but pass it through a closure first..

pub async fn reader<'_>(&'_ self) -> String[src]

Get the value of the "reader" string.

Trait Implementations

impl AsyncRead for TestCase[src]

impl AsyncWrite for TestCase[src]

impl Clone for TestCase[src]

impl Debug for TestCase[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> ReadExt for T where
    T: AsyncRead + ?Sized
[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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WriteExt for T where
    T: AsyncWrite + ?Sized
[src]