pub struct Maelstrom<A> {
pub node: A,
}
Expand description
A thin wrapper around a node that handles rpcs and dumps outbound messages to stdout and reads inbound messages from stdin.
Fields§
§node: A
The node that handles messages.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<A> Freeze for Maelstrom<A>where
A: Freeze,
impl<A> RefUnwindSafe for Maelstrom<A>where
A: RefUnwindSafe,
impl<A> Send for Maelstrom<A>where
A: Send,
impl<A> Sync for Maelstrom<A>where
A: Sync,
impl<A> Unpin for Maelstrom<A>where
A: Unpin,
impl<A> UnwindSafe for Maelstrom<A>where
A: UnwindSafe,
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