pub(crate) enum SweepScope {
Conversations,
DirectMessages,
}Expand description
Which conversations one pass reads. The DM class covers every DM rather than a list, so it costs one history read per DM however many subscriptions exist - which is why it is swept on its own clock, and why a pass reads only what it is for.
Variants§
Conversations
The conversations a subscription names, and the mention-pulled ones.
DirectMessages
The conversations only the DM class covers. A DM a subscription also names is read on the conversation clock rather than twice.
Trait Implementations§
Source§impl Clone for SweepScope
impl Clone for SweepScope
impl Copy for SweepScope
Auto Trait Implementations§
impl Freeze for SweepScope
impl RefUnwindSafe for SweepScope
impl Send for SweepScope
impl Sync for SweepScope
impl Unpin for SweepScope
impl UnsafeUnpin for SweepScope
impl UnwindSafe for SweepScope
Blanket Implementations§
§impl<T> AnySync for T
impl<T> AnySync 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
Mutably borrows from an owned value. Read more
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> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
Converts
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> ⓘ
Converts
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