pub struct StreamObjectWriter {
pub info: Arc<StreamObject>,
/* private fields */
}
Expand description
Used to write data to a segment and notify readers.
Fields§
§info: Arc<StreamObject>
Implementations§
Source§impl StreamObjectWriter
impl StreamObjectWriter
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 Deref for StreamObjectWriter
impl Deref for StreamObjectWriter
Auto Trait Implementations§
impl Freeze for StreamObjectWriter
impl RefUnwindSafe for StreamObjectWriter
impl Send for StreamObjectWriter
impl Sync for StreamObjectWriter
impl Unpin for StreamObjectWriter
impl UnwindSafe for StreamObjectWriter
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