pub async fn recv_blob_fd<S: Session + ?Sized>(
session: &S,
descriptor: &SharedBlobDescriptor,
) -> Result<SharedBlobDescriptor, Error>Expand description
Receive a blob’s file descriptor via the session layer.
For blobs expected to be backed by UnixFd, this receives the FD using
SCM_RIGHTS and returns an updated descriptor with the local FD number.
§Arguments
session- The session to use for FD transferdescriptor- The original blob descriptor (FD value will be replaced)
§Returns
Returns an updated SharedBlobDescriptor with the received FD, or the
original descriptor unchanged for non-FD blob types.