Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 796c5753 authored by WILLIAMS Harvey's avatar WILLIAMS Harvey
Browse files

Revert "Little bit of rewording"

This reverts commit 82de5902.
parent 82de5902
No related branches found
No related tags found
No related merge requests found
......@@ -18,6 +18,6 @@ This repository might be helpful for you!
# Prerequisites
- Some basic understanding of writing async rust code. Although you can still write your application code in a synchronous manner, we opt to use it here to simplify the handling of network events.
- Some basic understanding of writing async rust code. Alhough you can opt to write your application code in a synchronous manner, we opt to use it here to handle events.
- A familiarity with the actor model/pattern of writing async code (see [here](https://ryhl.io/blog/actors-with-tokio/) for a good starting point).
\ No newline at end of file
- A familiarity with the actor model/pattern of writing async code.
\ No newline at end of file
......@@ -8,6 +8,6 @@ pub trait Network {
/// Send a message to the identifier specified by the 'to' field.
fn send(&mut self, to: &str, message: Vec<u8>);
/// Generate one or more receivers to catch inbound messages.
/// Wait for a message to be received
async fn recv(&mut self) -> mpsc::Receiver<(String, Vec<u8>)>;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment