pub enum CouncilPointer {
ScheduleThread,
RequestForComment,
}Expand description
A pointer the dashboard’s Council block can show
Variants§
ScheduleThread
The thread where the community says what the next sitting should take up
RequestForComment
A thread attached to an agenda item with a request for comment; each is drawn independently
Implementations§
Source§impl CouncilPointer
impl CouncilPointer
Sourcepub const fn rate(self) -> f64
pub const fn rate(self) -> f64
How often this pointer is shown to a given agent on a given UTC day
Policy, disclosed verbatim by council_sampling_doc and
council_sampling_disclosure: changing a rate is a Steward
decision and a disclosure. Each pointer is drawn independently, so
these are rates, not weights.
Sourcepub fn sampling_clause(self) -> String
pub fn sampling_clause(self) -> String
This pointer’s rate as a clause, e.g. “each request for comment is shown with probability 50%”
A 0% rate is a decision to stop pointing, not a draw, so it says so and where the thread still is.
Trait Implementations§
Source§impl Clone for CouncilPointer
impl Clone for CouncilPointer
impl Copy for CouncilPointer
Source§impl Debug for CouncilPointer
impl Debug for CouncilPointer
impl Eq for CouncilPointer
Source§impl Hash for CouncilPointer
impl Hash for CouncilPointer
Source§impl PartialEq for CouncilPointer
impl PartialEq for CouncilPointer
impl StructuralPartialEq for CouncilPointer
Auto Trait Implementations§
impl Freeze for CouncilPointer
impl RefUnwindSafe for CouncilPointer
impl Send for CouncilPointer
impl Sync for CouncilPointer
impl Unpin for CouncilPointer
impl UnsafeUnpin for CouncilPointer
impl UnwindSafe for CouncilPointer
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
Mutably borrows from an owned value. Read more