pub struct OutputStream { /* private fields */ }Implementations§
Source§impl OutputStream
impl OutputStream
pub fn ty(&self) -> OutputType
pub fn subscribe(&self) -> Receiver<Option<String>>
pub fn inspect(&self, f: impl Fn(String) + Send + 'static) -> Inspector
pub fn inspect_async<F>(&self, f: F) -> Inspector
pub fn collect<S: Sink>( &self, into: S, collect: impl Fn(String, &mut S) + Send + 'static, ) -> Collector<S>
pub fn collect_async<S, F>(&self, into: S, collect: F) -> Collector<S>
pub fn collect_into_vec(&self) -> Collector<Vec<String>>
pub fn collect_into_write<W: Sink + AsyncWriteExt + Unpin>( &self, write: W, ) -> Collector<W>
pub fn collect_into_write_mapped<W: Sink + AsyncWriteExt + Unpin, B: AsRef<[u8]> + Send>( &self, write: W, mapper: impl Fn(String) -> B + Send + Sync + Copy + 'static, ) -> Collector<W>
Trait Implementations§
Source§impl Debug for OutputStream
impl Debug for OutputStream
Auto Trait Implementations§
impl Freeze for OutputStream
impl !RefUnwindSafe for OutputStream
impl Send for OutputStream
impl Sync for OutputStream
impl Unpin for OutputStream
impl !UnwindSafe for OutputStream
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