pub struct StreamGroupWriter {
pub info: Arc<StreamGroup>,
/* private fields */
}
Fields§
§info: Arc<StreamGroup>
Implementations§
Source§impl StreamGroupWriter
impl StreamGroupWriter
Sourcepub fn write(&mut self, payload: Bytes) -> Result<(), ServeError>
pub fn write(&mut self, payload: Bytes) -> Result<(), ServeError>
Add a new object to the group.
pub fn create(&mut self, size: usize) -> Result<StreamObjectWriter, 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§
Auto Trait Implementations§
impl Freeze for StreamGroupWriter
impl RefUnwindSafe for StreamGroupWriter
impl Send for StreamGroupWriter
impl Sync for StreamGroupWriter
impl Unpin for StreamGroupWriter
impl UnwindSafe for StreamGroupWriter
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