pub enum TimelineEventFocusThreadMode {
ForceThread,
Automatic {
hide_threaded_events: bool,
},
}Expand description
Options for controlling the behaviour of TimelineFocus::Event
for threaded events.
Variants§
ForceThread
Force the timeline into threaded mode.
When the focused event is part of a thread, the timeline will be focused on that thread’s root. Otherwise, the timeline will treat the target event itself as the thread root. Threaded events will never be hidden.
Automatic
Automatically determine if the target event is part of a thread or not.
If the event is part of a thread, the timeline will be filtered to on-thread events.
Fields
hide_threaded_events: boolWhen the target event is not part of a thread, whether to hide in-thread replies from the live timeline.
Has no effect when the target event is part of a thread.
This should be set to true when the client can create
TimelineFocus::Thread-focused timelines from the thread roots
themselves and doesn’t use the Self::ForceThread mode.
Trait Implementations§
Source§impl Clone for TimelineEventFocusThreadMode
impl Clone for TimelineEventFocusThreadMode
Source§fn clone(&self) -> TimelineEventFocusThreadMode
fn clone(&self) -> TimelineEventFocusThreadMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for TimelineEventFocusThreadMode
Source§impl Debug for TimelineEventFocusThreadMode
impl Debug for TimelineEventFocusThreadMode
Source§impl From<TimelineEventFocusThreadMode> for EventFocusThreadMode
impl From<TimelineEventFocusThreadMode> for EventFocusThreadMode
Source§fn from(val: TimelineEventFocusThreadMode) -> Self
fn from(val: TimelineEventFocusThreadMode) -> Self
impl StructuralPartialEq for TimelineEventFocusThreadMode
Auto Trait Implementations§
impl Freeze for TimelineEventFocusThreadMode
impl RefUnwindSafe for TimelineEventFocusThreadMode
impl Send for TimelineEventFocusThreadMode
impl Sync for TimelineEventFocusThreadMode
impl Unpin for TimelineEventFocusThreadMode
impl UnsafeUnpin for TimelineEventFocusThreadMode
impl UnwindSafe for TimelineEventFocusThreadMode
Blanket Implementations§
impl<T> Any for Twhere
T: Any,
impl<T> AsyncTraitDeps for T
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
impl<T> CloneAny for T
impl<T> CloneAnySend for T
impl<T> CloneAnySendSync for T
impl<T> CloneAnySync for T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DropFlavorWrapper<T> for T
impl<T> DropFlavorWrapper<T> for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
impl<T, W> HasTypeWitness<W> for Twhere
W: MakeTypeWitness<Arg = T>,
T: ?Sized,
Source§impl<T> Identity for Twhere
T: ?Sized,
impl<T> Identity for Twhere
T: ?Sized,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§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