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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<UT> ConvertError<UT> for TimelineEventFocusThreadMode
impl<UT> ConvertError<UT> for TimelineEventFocusThreadMode
fn try_convert_unexpected_callback_error( e: UnexpectedUniFFICallbackError, ) -> Result<Self>
Source§impl Debug for TimelineEventFocusThreadMode
impl Debug for TimelineEventFocusThreadMode
Source§impl<UT> FfiConverter<UT> for TimelineEventFocusThreadMode
impl<UT> FfiConverter<UT> for TimelineEventFocusThreadMode
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
Source§fn lower(v: Self) -> RustBuffer
fn lower(v: Self) -> RustBuffer
Source§fn try_lift(buf: RustBuffer) -> Result<Self>
fn try_lift(buf: RustBuffer) -> Result<Self>
Source§impl<UT> Lift<UT> for TimelineEventFocusThreadMode
impl<UT> Lift<UT> for TimelineEventFocusThreadMode
Source§impl<UT> LiftRef<UT> for TimelineEventFocusThreadMode
impl<UT> LiftRef<UT> for TimelineEventFocusThreadMode
Source§impl<UT> LiftReturn<UT> for TimelineEventFocusThreadMode
impl<UT> LiftReturn<UT> for TimelineEventFocusThreadMode
Source§type ReturnType = <TimelineEventFocusThreadMode as Lift<UT>>::FfiType
type ReturnType = <TimelineEventFocusThreadMode as Lift<UT>>::FfiType
Source§fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
fn try_lift_successful_return(v: Self::ReturnType) -> Result<Self>
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Source§impl<UT> Lower<UT> for TimelineEventFocusThreadMode
impl<UT> Lower<UT> for TimelineEventFocusThreadMode
type FfiType = <TimelineEventFocusThreadMode as FfiConverter<UT>>::FfiType
fn lower(obj: Self) -> Self::FfiType
fn write(obj: Self, buf: &mut Vec<u8>)
Source§fn lower_into_rust_buffer(obj: Self) -> RustBuffer
fn lower_into_rust_buffer(obj: Self) -> RustBuffer
Source§impl<UT> LowerError<UT> for TimelineEventFocusThreadMode
impl<UT> LowerError<UT> for TimelineEventFocusThreadMode
Source§fn lower_error(obj: Self) -> RustBuffer
fn lower_error(obj: Self) -> RustBuffer
Source§impl<UT> LowerReturn<UT> for TimelineEventFocusThreadMode
impl<UT> LowerReturn<UT> for TimelineEventFocusThreadMode
Source§type ReturnType = <TimelineEventFocusThreadMode as Lower<UT>>::FfiType
type ReturnType = <TimelineEventFocusThreadMode as Lower<UT>>::FfiType
Source§fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
fn lower_return(v: Self) -> Result<Self::ReturnType, RustCallError>
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Source§impl PartialEq for TimelineEventFocusThreadMode
impl PartialEq for TimelineEventFocusThreadMode
Source§fn eq(&self, other: &TimelineEventFocusThreadMode) -> bool
fn eq(&self, other: &TimelineEventFocusThreadMode) -> bool
self and other values to be equal, and is used by ==.Source§impl<UT> TypeId<UT> for TimelineEventFocusThreadMode
impl<UT> TypeId<UT> for TimelineEventFocusThreadMode
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 UnwindSafe for TimelineEventFocusThreadMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> CompatExt for T
impl<T> CompatExt for T
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
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,
§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