Trait capnp_rpc::VatNetwork [−][src]
pub trait VatNetwork<VatId> { fn connect(&mut self, host_id: VatId) -> Option<Box<Connection<VatId>>>; fn accept(&mut self) -> Promise<Box<Connection<VatId>>, Error>; fn drive_until_shutdown(&mut self) -> Promise<(), Error>; }
Required Methods
fn connect(&mut self, host_id: VatId) -> Option<Box<Connection<VatId>>>
Returns None if hostId
refers to the local vat.
fn accept(&mut self) -> Promise<Box<Connection<VatId>>, Error>
Waits for the next incoming connection and return it.
fn drive_until_shutdown(&mut self) -> Promise<(), Error>
Implementors
impl<T> VatNetwork<VatId> for VatNetwork<T> where
T: Read,