pub struct FileRegion {
pub file: Arc<File>,
pub offset: u64,
pub len: usize,
}Expand description
A [offset, offset+len) byte range within a segment .log file.
The range holds one or more complete v2 record batches, and it can end with a clipped trailing batch. Byte for byte, these are the records-field bytes that a fetch response would otherwise materialize.
Fields§
§file: Arc<File>The segment .log file. Shared (Arc) so the inode stays open for the
duration of the async send regardless of concurrent retention.
offset: u64Start byte position of the records run within file.
len: usizeNumber of bytes in the run.
Trait Implementations§
Source§impl Clone for FileRegion
impl Clone for FileRegion
Source§impl Debug for FileRegion
impl Debug for FileRegion
impl Eq for FileRegion
Auto Trait Implementations§
impl Freeze for FileRegion
impl RefUnwindSafe for FileRegion
impl Send for FileRegion
impl Sync for FileRegion
impl Unpin for FileRegion
impl UnsafeUnpin for FileRegion
impl UnwindSafe for FileRegion
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