Struct View
pub struct View { /* private fields */ }inspect only.Expand description
Interaction state over a Timeline: scope, filter, selection and window.
Implementations§
§impl View
impl View
pub fn set_filter(&mut self, filter: impl Into<String>)
pub fn set_filter(&mut self, filter: impl Into<String>)
Restrict to entries matching filter, keeping the selection when possible.
pub fn connection(&self) -> Option<usize>
pub fn connection(&self) -> Option<usize>
Connection scope, or None for all connections.
pub fn select_connection(&mut self, connection: Option<usize>)
pub fn select_connection(&mut self, connection: Option<usize>)
Restrict to one connection, or to all when None.
pub fn cycle_connection(&mut self)
pub fn cycle_connection(&mut self)
Cycle through “all connections” and each individual connection.
pub fn matches(&self) -> &[usize]
pub fn matches(&self) -> &[usize]
Indices, into Timeline::entries, of the entries currently shown.
pub fn visible(&self) -> impl ExactSizeIterator
pub fn visible(&self) -> impl ExactSizeIterator
Entries currently shown, in time order.
pub fn cursor(&self) -> usize
pub fn cursor(&self) -> usize
Position of the selection within View::visible.
pub fn select_next(&mut self)
pub fn select_next(&mut self)
Move the selection down, stopping at the last shown entry.
pub fn select_prev(&mut self)
pub fn select_prev(&mut self)
Move the selection up, stopping at the first shown entry.
pub fn select_first(&mut self)
pub fn select_first(&mut self)
Select the first shown entry.
pub fn select_last(&mut self)
pub fn select_last(&mut self)
Select the last shown entry.
pub fn select(&mut self, position: usize)
pub fn select(&mut self, position: usize)
Select by position within View::visible, clamped to what is shown.
pub fn reset_window(&mut self)
pub fn reset_window(&mut self)
Show the whole capture again.
pub fn zoom(&mut self, factor: f64)
pub fn zoom(&mut self, factor: f64)
Scale the window by factor around the selection (< 1 zooms in).
The window never shrinks below a millisecond and never grows past the capture’s own span.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for View
impl !UnwindSafe for View
impl Forget for View
impl Freeze for Viewwhere
*const ThinInner is !null: Freeze,
*const u8 is !null: Freeze,
PhantomData<Field>: Freeze,
PhantomData<Connection>: Freeze,
PhantomData<Entry>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<usize>: Freeze,
impl Move for View
impl Send for View
impl Sync for View
impl Unpin for View
impl UnsafeUnpin for Viewwhere
*const ThinInner is !null: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<Field>: UnsafeUnpin,
PhantomData<Connection>: UnsafeUnpin,
PhantomData<Entry>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<usize>: UnsafeUnpin,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more