pub struct StreamWriter {
pub info: Arc<Stream>,
/* private fields */
}
Expand description
Used to write data to a stream and notify readers.
This is Clone as a work-around, but be very careful because it’s meant to be sequential.
Fields§
§info: Arc<Stream>
Implementations§
Source§impl StreamWriter
impl StreamWriter
pub fn create(&mut self, group_id: u64) -> Result<StreamGroupWriter, ServeError>
pub fn append(&mut self) -> Result<StreamGroupWriter, ServeError>
Sourcepub fn close(self, err: ServeError) -> Result<(), ServeError>
pub fn close(self, err: ServeError) -> Result<(), ServeError>
Close the stream with an error.
Trait Implementations§
Source§impl Clone for StreamWriter
impl Clone for StreamWriter
Source§fn clone(&self) -> StreamWriter
fn clone(&self) -> StreamWriter
Returns a copy 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 Deref for StreamWriter
impl Deref for StreamWriter
Source§impl From<StreamWriter> for TrackWriterMode
impl From<StreamWriter> for TrackWriterMode
Source§fn from(writer: StreamWriter) -> Self
fn from(writer: StreamWriter) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for StreamWriter
impl RefUnwindSafe for StreamWriter
impl Send for StreamWriter
impl Sync for StreamWriter
impl Unpin for StreamWriter
impl UnwindSafe for StreamWriter
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