pub struct Writer { /* private fields */ }Implementations§
source§impl Writer
impl Writer
pub async fn new<T>(path: T) -> Result<Self>where T: AsRef<Path>,
pub async fn write<T>(&mut self, text: T) -> Result<()>where T: AsRef<str>,
pub async fn ln(&mut self) -> Result<()>
pub async fn writeln<T>(&mut self, text: T) -> Result<()>where T: AsRef<str>,
pub async fn flush(&mut self) -> Result<()>
Auto Trait Implementations§
impl !RefUnwindSafe for Writer
impl Send for Writer
impl Sync for Writer
impl Unpin for Writer
impl !UnwindSafe for Writer
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