pub struct GrepPageCursor {
pub head_seq: ChangeSeq,
pub last_inode_id: InodeId,
pub last_byte_offset: u64,
pub fingerprint: u64,
}Expand description
Cursor for one content-search (grep) snapshot.
Matches advance in ascending (inode_id, byte_offset) order: candidate
files by durable inode identity, match positions within a file by byte
offset. The cursor resumes strictly after the last returned match.
Fields§
§head_seq: ChangeSeqSequence the issuing page was evaluated at.
last_inode_id: InodeIdInode of the last candidate the issuing page finished scanning.
last_byte_offset: u64Byte offset of the last returned match within that file, or
u64::MAX when the file was fully scanned (budget stops and
matchless candidates resume at the next inode).
fingerprint: u64Fingerprint of the request (pattern, flags, scope) that issued the cursor; a cursor replayed under a different request is rejected instead of silently skipping results.
Trait Implementations§
Source§impl Clone for GrepPageCursor
impl Clone for GrepPageCursor
Source§fn clone(&self) -> GrepPageCursor
fn clone(&self) -> GrepPageCursor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrepPageCursor
impl Debug for GrepPageCursor
Source§impl<'de> Deserialize<'de> for GrepPageCursor
impl<'de> Deserialize<'de> for GrepPageCursor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GrepPageCursor
Source§impl PageCursor for GrepPageCursor
impl PageCursor for GrepPageCursor
Source§impl PartialEq for GrepPageCursor
impl PartialEq for GrepPageCursor
Source§impl Serialize for GrepPageCursor
impl Serialize for GrepPageCursor
impl StructuralPartialEq for GrepPageCursor
Auto Trait Implementations§
impl Freeze for GrepPageCursor
impl RefUnwindSafe for GrepPageCursor
impl Send for GrepPageCursor
impl Sync for GrepPageCursor
impl Unpin for GrepPageCursor
impl UnsafeUnpin for GrepPageCursor
impl UnwindSafe for GrepPageCursor
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