[−][src]Function zvariant::to_bytes_fds_for_signature
pub fn to_bytes_fds_for_signature<B, T: ?Sized>(
ctxt: EncodingContext<B>,
signature: &Signature,
value: &T
) -> Result<(Vec<u8>, Vec<RawFd>)> where
B: ByteOrder,
T: Serialize,
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.