Struct capnp_rpc::twoparty::VatNetwork [−][src]
A vat networks with two parties, the client and the server.
Implementations
impl<T> VatNetwork<T> where
T: AsyncRead + Unpin,
[src]
T: AsyncRead + Unpin,
pub fn new<U>(
input_stream: T,
output_stream: U,
side: Side,
receive_options: ReaderOptions
) -> VatNetwork<T> where
U: AsyncWrite + 'static + Unpin,
[src]
input_stream: T,
output_stream: U,
side: Side,
receive_options: ReaderOptions
) -> VatNetwork<T> where
U: AsyncWrite + 'static + Unpin,
Creates a new two-party vat network that will receive data on input_stream
and send data on
output_stream
.
side
indicates whether this is the client or the server side of the connection. This has no
effect on the data sent over the connection; it merely exists so that RpcNetwork::bootstrap
knows
whether to return the local or the remote bootstrap capability. VatId
parameters like this one
will make more sense once we have vat networks with more than two parties.
The options in receive_options
will be used when reading the messages that come in on input_stream
.
Trait Implementations
impl<T> VatNetwork<Side> for VatNetwork<T> where
T: AsyncRead + Unpin,
[src]
T: AsyncRead + Unpin,
Auto Trait Implementations
impl<T> !RefUnwindSafe for VatNetwork<T>
impl<T> !Send for VatNetwork<T>
impl<T> !Sync for VatNetwork<T>
impl<T> Unpin for VatNetwork<T>
impl<T> !UnwindSafe for VatNetwork<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,