Skip to main content

Release

Trait Release 

Source
pub trait Release<T> {
    // Required method
    unsafe fn release(&mut self, buffer: T);
}
Expand description

Returns a receive slot to its original native storage owner.

Required Methods§

Source

unsafe fn release(&mut self, buffer: T)

§Safety

The buffer is unique, has no live projections, and was issued by this owner. Retain that storage until the return is consumed or published.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§