pub struct RaidParams {
pub fresh_join_secs: u64,
pub trusted_tenure_secs: u64,
pub trusted_messages: u64,
pub trusted_distinct: u64,
pub quiet_messages: u64,
pub min_cohort: usize,
pub short_text_factor: usize,
pub burst_gap_secs: u64,
pub min_burst: usize,
pub known_shortcodes: HashSet<String>,
}Expand description
Tunables for assess. The defaults are the shape of a real raid; a moderator can
widen them from the panel when a wave is slower or quieter than the norm.
Fields§
§fresh_join_secs: u64A join newer than this reads as “just now”.
trusted_tenure_secs: u64Tenure at which a member is trusted on age alone (with some volume).
trusted_messages: u64Messages that, with tenure or variety, make a member trusted.
trusted_distinct: u64Distinct message shapes that read as real conversation.
quiet_messages: u64At or below this, a member has effectively not spoken.
min_cohort: usizeDistinct senders sharing one skeleton before it counts as a cohort.
short_text_factor: usizeMultiplier on min_cohort for skeletons under [MIN_SKELETON_LEN].
burst_gap_secs: u64How far apart two joins may be and still belong to the same burst.
min_burst: usizeJoins in one window before it reads as a burst rather than a busy afternoon.
known_shortcodes: HashSet<String>Shortcodes that render as images here; anything else in colons is read as text.
Trait Implementations§
Source§impl Clone for RaidParams
impl Clone for RaidParams
Source§impl Debug for RaidParams
impl Debug for RaidParams
Auto Trait Implementations§
impl Freeze for RaidParams
impl RefUnwindSafe for RaidParams
impl Send for RaidParams
impl Sync for RaidParams
impl Unpin for RaidParams
impl UnsafeUnpin for RaidParams
impl UnwindSafe for RaidParams
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,
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