pub struct ConsoleStream { /* private fields */ }Implementations§
Source§impl ConsoleStream
impl ConsoleStream
pub fn new(stream: ConsoleStreamType) -> Self
pub fn new_testing(stream: ConsoleStreamType) -> Self
pub fn empty(stream: ConsoleStreamType) -> Self
pub fn is_quiet(&self) -> bool
pub fn is_terminal(&self) -> bool
pub fn buffer(&self) -> ConsoleBuffer ⓘ
pub fn close(&self) -> Result<(), ConsoleError>
pub fn flush(&self) -> Result<(), ConsoleError>
pub fn write_raw<F: FnMut(&mut Vec<u8>) -> Result<()>>( &self, op: F, ) -> Result<(), ConsoleError>
pub fn write<T: AsRef<[u8]>>(&self, data: T) -> Result<(), ConsoleError>
pub fn write_line<T: AsRef<[u8]>>(&self, data: T) -> Result<(), ConsoleError>
pub fn write_line_with_prefix<T: AsRef<str>>( &self, data: T, prefix: &str, ) -> Result<(), ConsoleError>
pub fn write_newline(&self) -> Result<(), ConsoleError>
Trait Implementations§
Source§impl Clone for ConsoleStream
impl Clone for ConsoleStream
Auto Trait Implementations§
impl Freeze for ConsoleStream
impl !RefUnwindSafe for ConsoleStream
impl Send for ConsoleStream
impl Sync for ConsoleStream
impl Unpin for ConsoleStream
impl !UnwindSafe for ConsoleStream
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