|
|
@ -82,10 +82,11 @@ impl SkLookup {
|
|
|
|
.insert(SkLookupLink::new(FdLink::new(link_fd)))
|
|
|
|
.insert(SkLookupLink::new(FdLink::new(link_fd)))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Takes ownership of the link referenced by the provided link_id.
|
|
|
|
/// Takes ownership of the link referenced by the provided `link_id`.
|
|
|
|
///
|
|
|
|
///
|
|
|
|
/// The link will be detached on `Drop` and the caller is now responsible
|
|
|
|
/// The caller takes the responsibility of managing the lifetime of the
|
|
|
|
/// for managing its lifetime.
|
|
|
|
/// link. When the returned [`SkLookupLink`] is dropped, the link is
|
|
|
|
|
|
|
|
/// detached.
|
|
|
|
pub fn take_link(&mut self, link_id: SkLookupLinkId) -> Result<SkLookupLink, ProgramError> {
|
|
|
|
pub fn take_link(&mut self, link_id: SkLookupLinkId) -> Result<SkLookupLink, ProgramError> {
|
|
|
|
self.data.take_link(link_id)
|
|
|
|
self.data.take_link(link_id)
|
|
|
|
}
|
|
|
|
}
|
|
|
|