Struct stdout_channel::StdoutChannel
source · pub struct StdoutChannel<T> { /* private fields */ }
Implementations§
source§impl<T> StdoutChannel<T>
impl<T> StdoutChannel<T>
pub fn new() -> Self
pub fn with_mock_stdout( mock_stdout: MockStdout<T>, mock_stderr: MockStdout<T> ) -> Self
pub fn send(&self, item: impl Into<T>)
pub fn send_err(&self, item: impl Into<T>)
Trait Implementations§
source§impl<T: Clone> Clone for StdoutChannel<T>
impl<T: Clone> Clone for StdoutChannel<T>
source§fn clone(&self) -> StdoutChannel<T>
fn clone(&self) -> StdoutChannel<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<T> Debug for StdoutChannel<T>
impl<T> Debug for StdoutChannel<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for StdoutChannel<T>
impl<T> Send for StdoutChannel<T>where
T: Send,
impl<T> Sync for StdoutChannel<T>where
T: Send,
impl<T> Unpin for StdoutChannel<T>
impl<T> !UnwindSafe for StdoutChannel<T>
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
Mutably borrows from an owned value. Read more