Mentions légales du service

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

Little bit of rewording

parent 198c4be7
No related branches found
No related tags found
No related merge requests found
...@@ -18,6 +18,6 @@ This repository might be helpful for you! ...@@ -18,6 +18,6 @@ This repository might be helpful for you!
# Prerequisites # Prerequisites
- 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. - 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.
- A familiarity with the actor model/pattern of writing async code. - 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 \ No newline at end of file
...@@ -8,6 +8,6 @@ pub trait Network { ...@@ -8,6 +8,6 @@ pub trait Network {
/// Send a message to the identifier specified by the 'to' field. /// Send a message to the identifier specified by the 'to' field.
fn send(&mut self, to: &str, message: Vec<u8>); fn send(&mut self, to: &str, message: Vec<u8>);
/// Wait for a message to be received /// Generate one or more receivers to catch inbound messages.
async fn recv(&mut self) -> mpsc::Receiver<(String, Vec<u8>)>; 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.
Finish editing this message first!
Please register or to comment