pub struct LogStream { /* private fields */ }
Implementations§
Source§impl LogStream
impl LogStream
pub fn file(filename: &str) -> Option<LogStream>
pub fn stdout() -> LogStream
pub fn stderr() -> LogStream
pub fn callback( cb: unsafe extern "system" fn(_: *const c_char, _: *mut c_char), ) -> LogStream
pub fn attached(&self) -> bool
pub fn attach(&mut self)
pub fn detach(&mut self)
pub fn set_verbose_logging(state: bool)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LogStream
impl RefUnwindSafe for LogStream
impl !Send for LogStream
impl !Sync for LogStream
impl Unpin for LogStream
impl UnwindSafe for LogStream
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