Skip to main content

PollEntry

Struct PollEntry 

Source
pub struct PollEntry {
    pub name: Ident,
    pub variant: Ident,
    pub cadence: PollCadence,
    pub grants: Option<Grants>,
    pub body: PollBody,
    pub mode: PollMode,
    pub concurrent: bool,
}
Expand description

ONE poll(…) entry: the name it MINTS, and the clock it runs on.

Fields§

§name: Ident

The bare ident the entry minted, as the declaration wrote it.

MINT BARE, by the round’s law: this name refers to nothing — no upstream, no type, no other declaration — it is a word this entry brings into being so the author can match on it. The bare-marker precedent, one axis over.

§variant: Ident

The word this entry takes in the emitted <Node>Due — name in upper camel case, which is how a Rust variant is spelled.

§cadence: PollCadence

Exactly one of the two schedule words, already read.

§grants: Option<Grants>

write = "…" / write = ["…", "…"] — the stores THIS CLOCK’s ticks are granted, in the order they were written, or None where the entry granted itself none.

INSIDE the entry, by the ruling that moved the word here: a permission is spent BY A TICK, so it is seated at the clock whose ticks spend it. Two clocks sharing a store write the word twice and get two contexts — explicit repetition over one list nobody can read a clock’s reach off, and it is what makes least privilege structural: deleting an entry deletes its grants.

§body: PollBody

WHO runs this clock’s ticks — the settled answer to the entry’s mandatory body word.

It is the PRESENCE SPLIT’s only input. An entry that mounted leaves <Node>Sweeps entirely — there is no method for it, because the body is not the operator’s — and a node all of whose entries mounted emits no sweep trait at all.

§mode: PollMode

WHERE this clock’s tick runs. Mandatory on every entry: a role is DECLARED rather than inferred, so there is no default and no second spelling of one.

§concurrent: bool

The bare concurrent word — free concurrency for a sync-detached entry, where the default is at most one tick in flight.

Meaningful only on PollMode::Spawn and PollMode::Rayon; every other mode refuses it by name, so a true here always names one of those two.

Implementations§

Source§

impl PollEntry

Source

pub const fn mounted(&self) -> bool

Whether this entry MOUNTS a citizen — the presence split’s own question.

Trait Implementations§

Source§

impl Clone for PollEntry

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 PollEntry

Source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

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.