pub struct TranscriptBatch {
pub lines: Vec<Value>,
pub ends: Vec<i64>,
pub start: i64,
pub end: i64,
}Expand description
What a hook read of a transcript: the lines, where each ends in the file
(ends[i] is the byte offset after lines[i]), and the byte range read.
Fields§
§lines: Vec<Value>§ends: Vec<i64>§start: i64§end: i64Implementations§
Source§impl TranscriptBatch
impl TranscriptBatch
Sourcepub fn next_offset(&self, delivered: &Delivered) -> Option<i64>
pub fn next_offset(&self, delivered: &Delivered) -> Option<i64>
Where the next read starts after delivered: the end of the batch
when every line was accepted or queued, else the end of the last line
that was, and None when none was. Lines read from there on get new
chunk_indexes, all past those of the lines before them: an index is
the batch’s byte offset plus the line’s position, and a line is longer
than one byte.
Trait Implementations§
Source§impl Debug for TranscriptBatch
impl Debug for TranscriptBatch
Auto Trait Implementations§
impl Forget for TranscriptBatch
impl Freeze for TranscriptBatch
impl Move for TranscriptBatch
impl RefUnwindSafe for TranscriptBatch
impl Send for TranscriptBatch
impl Sync for TranscriptBatch
impl Unpin for TranscriptBatch
impl UnsafeUnpin for TranscriptBatch
impl UnwindSafe for TranscriptBatch
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