[][src]Struct tracing_test::internal::MockWriter

pub struct MockWriter<'a> { /* fields omitted */ }

A fake writer that writes into a buffer (behind a mutex).

Implementations

impl<'a> MockWriter<'a>[src]

pub fn new(buf: &'a Mutex<Vec<u8>>) -> Self[src]

Create a new MockWriter that writes into the specified buffer (behind a mutex).

Trait Implementations

impl<'a> Debug for MockWriter<'a>[src]

impl<'a> MakeWriter for MockWriter<'a>[src]

type Writer = Self

The concrete io::Write implementation returned by make_writer. Read more

impl<'a> Write for MockWriter<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for MockWriter<'a>

impl<'a> Send for MockWriter<'a>

impl<'a> Sync for MockWriter<'a>

impl<'a> Unpin for MockWriter<'a>

impl<'a> UnwindSafe for MockWriter<'a>

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> Instrument for T[src]

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

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.