[−][src]Struct tracing_test::internal::MockWriter
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
pub fn make_writer(&self) -> Self::Writer[src]
impl<'a> Write for MockWriter<'a>[src]
pub fn write(&mut self, buf: &[u8]) -> Result<usize>[src]
pub fn flush(&mut self) -> Result<()>[src]
pub fn write_vectored(&mut self, bufs: &[IoSlice<'_>]) -> Result<usize, Error>1.36.0[src]
pub fn is_write_vectored(&self) -> bool[src]
pub fn write_all(&mut self, buf: &[u8]) -> Result<(), Error>1.0.0[src]
pub fn write_all_vectored(
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>[src]
&mut self,
bufs: &mut [IoSlice<'_>]
) -> Result<(), Error>
pub fn write_fmt(&mut self, fmt: Arguments<'_>) -> Result<(), Error>1.0.0[src]
pub fn by_ref(&mut self) -> &mut Self1.0.0[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,