pub enum CacheOp {
Read {
start: usize,
end: usize,
},
Grep {
pattern: String,
context_lines: usize,
},
Head {
lines: usize,
},
Tail {
lines: usize,
},
Stats,
}Expand description
Operations that can be performed on a cached result.
Variants§
Read
Read a range of lines (1-indexed, inclusive).
Fields
Grep
Search for a regex pattern, returning matches with context.
Fields
Head
Return the first N lines.
Tail
Return the last N lines.
Stats
Return statistics about the cached data.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CacheOp
impl RefUnwindSafe for CacheOp
impl Send for CacheOp
impl Sync for CacheOp
impl Unpin for CacheOp
impl UnsafeUnpin for CacheOp
impl UnwindSafe for CacheOp
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