Ben Chuanlong Du's Blog

It is never too late to learn.

Use of Mock Values in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Mocking

https://crates.io/crates/mailtutan

  • Mocking in Rust: Mockall and alternatives

  • mockall

  • mockers

  • turmoil Turmoil is a framework for testing distributed systems. It provides deterministic execution by running multiple concurrent hosts within a single thread. It introduces "hardship" into the system via changes in the simulated network. The network can be controlled manually or with a seeded rng.

Linked List in Rust

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

The std library of Rust has an implementation of linked list , however, it is not useful as it does not give users the flexibility of manipulating raw pointers (which is the …

Tips on Network Protocols

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

TCP/IP and UDP/IP are low-level data transfer protocols.

HTTP, FTP, SMTP, WebSocket are high-level data transfer protocols.

WebSocket persists a connection and use it for bidirectional data transfering. It …