[back]
Leonard Kevin McGuire Jr.

This is my collection of things that I desire to publish out there for you to read, use, or reference. I have attempted to create a simple tag system to help you navigate the content. The default view will simply list everything. I hope to improve the design of this portal to my collection of things over time. Enjoy!

    github:                 https://github.com/kmcguire3413
    email:                  kmcg3413@gmail.com
    country:                US
    preferred-languages:    rust, python, c, assembly(ARM,X86,X64_86,AVR,PIC)
    website-software:       pypagey (might publish to github one day)

PYTHON I/O DEMO SOCKETS MS-SQL-SERIES MICROSOFT SQL MERGE SELECT INSERT RUST GUIDE EASY ARM CROSS-COMPILE RUSTC SYSTEM-SOFTWARE KERNEL USER-MODE-SCHEDULING THREADS THREADING RUST-DEV LINK UBUNTU WANDBOARD EMBEDDED LINUX LOOPBACK DEVICE DISK IMAGE PROJECT RTLSDR SCANNER RADIO SOFTWARE DEFINED RADIO DSP C TOR INTERNALS POINTERS CODE LIFETIME-SPECIFIERS MS-SQL UDF TABLE RSA SSH-KEYGEN GC GARBAGE-COLLECTOR HISTORY DEBIAN GNURADIO SETUP GO CUSTOM-BOX LINKED-LIST CONDITIONAL-COMPILATION CRATES RAW-PACKET LOW-LEVEL-NET LIBRARY NETWORK DNS TCP IP UDP NIM PORT CHALLENGE FUN POLYMORPHISM COMMUNICATION CHANNELS MESSAGES ASN ASN.1 CONSOLE KSPLICE HOT-PATCH NAMED PIPE PROGRAMMING IPC


Rust (Challenge) Port Simple State Machine
RUST CODE NIM PORT CHALLENGE FUN POLYMORPHISM

A friend suggested porting the following code from Nim to Rust. I have never used Nim but could grasp the intention of the code. I had to make a choice along the way. Was I going to support multiple Worker being able to use the same State, and was I going to support multiple State being able to use the same worker. Well, I decide to allow multiple workers to use the same state and left it open to be implemented for state to be able to implement a field to hold a specific worker.