The guest_ethernet crate provides a safe wrapper around the guest ethernet FFI interface, including appropriate memory management. See the comments in interface.rs for what each FFI function does. Do not use the interface directly.
This FFI interface is not safe to use directly as it involves passing both C++ and Rust allocated objects across the interface, and callbacks may be invoked from different threads. Use the guest_ethernet crate to interact with these functions.