pub struct World { /* private fields */ }Expand description
One heap and the peers it can reach.
Implementations§
Source§impl World
impl World
pub fn new(budget: usize) -> World
pub fn heap(&mut self) -> &mut Heap
Sourcepub fn serve(&mut self, name: &str, tx: Sender<Val>)
pub fn serve(&mut self, name: &str, tx: Sender<Val>)
Register a peer under name, reached from the object language as
('host name). This end knows only where to put a message.
Sourcepub fn link(&mut self, conn: ConnId, tx: Sender<Frame>)
pub fn link(&mut self, conn: ConnId, tx: Sender<Frame>)
A link established before the loop starts; the counterpart for one
established while it runs is Event::Link.
Auto Trait Implementations§
impl Freeze for World
impl !RefUnwindSafe for World
impl Send for World
impl Sync for World
impl Unpin for World
impl !UnwindSafe for World
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