Skip to main content

refuse_no_handle

Function refuse_no_handle 

Source
fn refuse_no_handle<T: TypedExternal>(receiver: SEXP) -> !
Expand description

Raises the error for a receiver that carries no external pointer (#1901): NO_HANDLE_CLASS, with the type’s field-error classes (TypedExternal::FIELD_ERROR_CLASS, #1899) in front, and for a list or an environment, the shape an earlier release of a package may have written to disk, its restored classes (TypedExternal::RESTORED_ERROR_CLASS) in front of those: a package refuses such a save as it refuses a restored pointer, with its restored message (TypedExternal::RESTORED_ERROR_MESSAGE) when it sets one. Another receiver (an atomic vector given the class) was never saved, so it gets neither (#1919).