pub struct StreamSegment {
pub session: String,
pub segment: i64,
pub bytes: Vec<u8>,
pub chunks: usize,
}Expand description
A completed segment, reassembled.
Fields§
§session: StringWhich conversation.
segment: i64Which message.
bytes: Vec<u8>The concatenated payload.
chunks: usizeHow many chunks it took.
Trait Implementations§
Source§impl Clone for StreamSegment
impl Clone for StreamSegment
Source§impl Debug for StreamSegment
impl Debug for StreamSegment
impl Eq for StreamSegment
Source§impl PartialEq for StreamSegment
impl PartialEq for StreamSegment
impl StructuralPartialEq for StreamSegment
Auto Trait Implementations§
impl Freeze for StreamSegment
impl RefUnwindSafe for StreamSegment
impl Send for StreamSegment
impl Sync for StreamSegment
impl Unpin for StreamSegment
impl UnsafeUnpin for StreamSegment
impl UnwindSafe for StreamSegment
Blanket Implementations§
impl<T> Allocation for T
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