Function zvariant::to_bytes_fds_for_signature
source ยท pub fn to_bytes_fds_for_signature<B, T>(
ctxt: EncodingContext<B>,
signature: &Signature<'_>,
value: &T,
) -> Result<(Vec<u8>, Vec<RawFd>)>
Expand description
Serialize T
that (potentially) contains FDs and has the given signature, to a new byte vector.
Use this function instead of to_bytes_fds
if the value being serialized does not implement
Type
.
Please note that the serialized bytes only contain the indices of the file descriptors from the returned file descriptor vector, which needs to be transferred via an out-of-band platform specific mechanism.
This function is not available on Windows.