Skip to main content

Polls

Struct Polls 

Source
pub struct Polls {
    pub entries: Vec<PollEntry>,
}
Expand description

The poll(…) entries: a node’s own clocks, entry by entry.

DECLARATION ORDER IS THE CONTRACT. A poll source is a POSITION in the runtime’s schedule, and the position an entry lands at is the order it was written in — so the emitted <Node>Due translates one into the other and an author never counts.

Fields§

§entries: Vec<PollEntry>

The entries, in declaration order.

Implementations§

Source§

impl Polls

Source

pub fn granting(&self) -> impl Iterator<Item = (usize, &PollEntry)>

The entries that GRANT, each with its POSITION IN THE WHOLE SCHEDULE, in declaration order.

The position is the schedule’s and not the granting subset’s, because that is what a tick carries: PollUpstream is a position among ALL of a node’s clocks, so a route keyed on anything else would send a granting clock’s tick to the wrong entry the day an ungranted clock is declared before it.

Written once and read from both the collision table and the emitter, because the two must agree entry for entry: a name registered for a clock the emitter skips would refuse a declaration for a clash no expansion can make.

Source

pub fn sweeping(&self) -> impl Iterator<Item = (usize, &PollEntry)>

The entries that are <Node>Sweeps METHODS — the ones that wrote light — each with its position in the whole schedule, in declaration order.

granting’s sibling over the other axis, and the PRESENCE SPLIT is read off it: an empty answer is a node whose every clock runs a mounted body, which emits no sweep trait at all. Written once and read from the collision table and the emitter for granting’s reason — a name registered for a trait the emitter skips would refuse a declaration for a clash no expansion can make.

Trait Implementations§

Source§

impl Clone for Polls

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Polls

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !Send for Polls

§

impl !Sync for Polls

§

impl Freeze for Polls

§

impl RefUnwindSafe for Polls

§

impl Unpin for Polls

§

impl UnsafeUnpin for Polls

§

impl UnwindSafe for Polls

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.