Skip to main content

hurray_writer_destroy

Function hurray_writer_destroy 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn hurray_writer_destroy( handle: *mut *mut HurrayWriter, ) -> HurrayStatus
Expand description

Destroys a writer, releases its transport context, and writes null through handle.

There is nothing to flush: a tensor is fully on the wire, or the call that wrote it failed. The transport’s own close, if it has one, belongs in its release callback.

§Safety

  • handle MUST be a valid, non-null pointer to a *mut HurrayWriter from hurray_writer_new.
  • That writer MUST NOT have been destroyed already.