pub struct FHandler { /* private fields */ }Implementations§
Source§impl FHandler
impl FHandler
pub fn new() -> Self
pub fn new_with_handler(fh: Box<FileHandler>) -> Self
pub fn new_with_asynchandler(fh: Box<FileHandler>) -> Self
pub fn print(&mut self, is_console: bool, console: &str, s: &str) -> Result<()>
pub async fn async_print( &mut self, is_console: bool, console: &str, s: &str, ) -> Result<()>
pub async fn async_console(&self, s: &str) -> Result<(), Box<dyn Error>>
pub fn set_file_handler(&mut self, filehandler: FileHandler)
pub fn set_async_file_handler(&mut self, filehandler: FileHandler)
Auto Trait Implementations§
impl !Freeze for FHandler
impl !RefUnwindSafe for FHandler
impl !UnwindSafe for FHandler
impl Send for FHandler
impl Sync for FHandler
impl Unpin for FHandler
impl UnsafeUnpin for FHandler
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