MCPcopy Create free account
hub / github.com/hashintel/hash / close

Method close

libs/darwin-kperf/sys/src/load.rs:170–172  ·  view source on GitHub ↗

Explicitly closes the library handle and returns any error from `dlclose`. After this call the destructor is disarmed; dropping the handle is a no-op. # Errors Returns [`LoadError`] if `dlclose` fails. # Safety The caller must ensure that no [`LibrarySymbol`] (or function pointer derived from one) obtained from this handle is used after this call returns.

(mut self)

Source from the content-addressed store, hash-verified

168 /// The caller must ensure that no [`LibrarySymbol`] (or function pointer derived from
169 /// one) obtained from this handle is used after this call returns.
170 pub unsafe fn close(mut self) -> Result<(), LoadError> {
171 self.0.take().map_or(Ok(()), Self::close_handle)
172 }
173}
174
175impl Drop for LibraryHandle {

Callers 15

signInAndSaveStateFunction · 0.45
globalSetupFunction · 0.45
fixtures.tsFile · 0.45
runWorkerFunction · 0.45
Connection.tsFile · 0.45
closeFunction · 0.45
acquireMethod · 0.45
routeMethod · 0.45
runMethod · 0.45
call_cancelFunction · 0.45

Calls 2

OkInterface · 0.85
takeMethod · 0.45

Tested by 8

call_cancelFunction · 0.36
transaction_reclamationFunction · 0.36
recv_premature_close_txFunction · 0.36
startFunction · 0.36