Trait IntoChannelValue

Source
pub unsafe trait IntoChannelValue {
    // Required methods
    fn into_value(self) -> *const c_void;
    fn from_value(ptr: *const c_void) -> Self;
}
Expand description

§Safety

Implementors should be aware that channels take no ownership of values and so it up to you to free if needed at suitable point in time. Additionally as Channels store void ptrs, its on calling code to cast correctly

Required Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, U> IntoChannelValue for T
where T: FSNewType<Inner = *mut U>,