I ve found https://doc.rust-lang.org/std/time/struct.Instant.html which corresponds to MONOTONIC_CLOCK time in nanoseconds. I would like to convert Instant to bytes to be sent over wire. However i am not able to convert from Instant to u64 value.
The documentation mentions Instant to be used only with Duration.
I am open to other ideas regarding how to serialize Instant.