pub fn to_bytes_fds<B, T: ?Sized>(
) -> Result<(Vec<u8>, Vec<RawFd>)> where
T: Serialize + Type,
T that (potentially) contains FDs, as a byte vector.
The returned file descriptor needs to be transferred via an out-of-band platform specific mechanism.