pub struct ProcNet<W, A>{
pub txq: Sender<Msg<W, A>>,
pub rxq: Receiver<Msg<W, A>>,
}
Expand description
The process’ interface to the Maelstrom network
Parameters
W
the workload body type, e.g. EchoA
the application body type
Fields§
§txq: Sender<Msg<W, A>>
Transmit queue
rxq: Receiver<Msg<W, A>>
Receive queue
Trait Implementations§
Auto Trait Implementations§
impl<W, A> Freeze for ProcNet<W, A>
impl<W, A> RefUnwindSafe for ProcNet<W, A>
impl<W, A> Send for ProcNet<W, A>
impl<W, A> Sync for ProcNet<W, A>
impl<W, A> Unpin for ProcNet<W, A>
impl<W, A> UnwindSafe for ProcNet<W, A>
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