Event

Enum Event 

Source
pub enum Event {
    Post(Val, Val),
    Link(ConnId, Sender<Frame>),
    Down(ConnId),
    Node(ConnId, Val),
    Gone(String),
}
Expand description

One queue carries everything arriving from outside the heap, so a quiescent node waits on a single receiver rather than selecting over a set that changes as peers come and go.

Variants§

§

Post(Val, Val)

A connection established while the loop runs, which is every one a node accepts rather than makes; the counterpart before it starts is World::link.

§

Down(ConnId)

The only liveness edge a node has about a far side.

§

Node(ConnId, Val)

A frame addressed to the node rather than a task in it (crate::link::NODE):

('watch id)         watch a task of yours for me
('down  id result)  it ended, and this is what with

Not a service reached through the greeter, because a table held by a task is lost when the task restarts with no event to say so.

§

Gone(String)

A host peer’s adapter has dropped the receiving end. Raised by a waiter the loop spawns, so a peer ending is an edge rather than a question.

Auto Trait Implementations§

§

impl Freeze for Event

§

impl !RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl !UnwindSafe for Event

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> 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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.