pub enum ViewSpec {
Tail {
n: usize,
},
Slice {
start: usize,
stop: Option<usize>,
},
FromCursor {
cursor_node: NodeId,
read_cursor: Arc<dyn Fn(HandleId) -> usize + Send + Sync>,
},
}Expand description
View specification for ReactiveLog::view.
Variants§
Tail
Last n entries.
Slice
Range [start..stop). stop defaults to log length.
FromCursor
Entries from cursor position onward. The cursor node provides a usize
position via read_cursor(handle) -> usize.
Auto Trait Implementations§
impl Freeze for ViewSpec
impl !RefUnwindSafe for ViewSpec
impl Send for ViewSpec
impl Sync for ViewSpec
impl Unpin for ViewSpec
impl UnsafeUnpin for ViewSpec
impl !UnwindSafe for ViewSpec
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