pub struct ByteStreamWriter { /* private fields */ }Expand description
Writer for an open byte data stream.
Trait Implementations§
Source§impl Clone for ByteStreamWriter
impl Clone for ByteStreamWriter
Source§fn clone(&self) -> ByteStreamWriter
fn clone(&self) -> ByteStreamWriter
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 ByteStreamWriter
impl<'a> StreamWriter<'a> for ByteStreamWriter
Source§type Info = ByteStreamInfo
type Info = ByteStreamInfo
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 ByteStreamWriter
impl !RefUnwindSafe for ByteStreamWriter
impl Send for ByteStreamWriter
impl Sync for ByteStreamWriter
impl Unpin for ByteStreamWriter
impl UnsafeUnpin for ByteStreamWriter
impl !UnwindSafe for ByteStreamWriter
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