pub struct TextStreamWriter { /* private fields */ }Expand description
Writer for an open text data stream.
Trait Implementations§
Source§impl Clone for TextStreamWriter
impl Clone for TextStreamWriter
Source§fn clone(&self) -> TextStreamWriter
fn clone(&self) -> TextStreamWriter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> StreamWriter<'a> for TextStreamWriter
impl<'a> StreamWriter<'a> for TextStreamWriter
Source§type Info = TextStreamInfo
type Info = TextStreamInfo
Information about the underlying data stream.
Source§async fn close(self) -> StreamResult<()>
async fn close(self) -> StreamResult<()>
Closes the stream normally.
Source§async fn close_with_reason(self, reason: &str) -> StreamResult<()>
async fn close_with_reason(self, reason: &str) -> StreamResult<()>
Closes the stream abnormally, specifying the reason for closure.
Auto Trait Implementations§
impl Freeze for TextStreamWriter
impl !RefUnwindSafe for TextStreamWriter
impl Send for TextStreamWriter
impl Sync for TextStreamWriter
impl Unpin for TextStreamWriter
impl UnsafeUnpin for TextStreamWriter
impl !UnwindSafe for TextStreamWriter
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