PortHandle

Trait PortHandle 

Source
pub trait PortHandle: Sized {
    // Required method
    unsafe fn from_raw(pointer: *mut c_void, sample_count: u32) -> Option<Self>;
}
Expand description

Abstraction of safe port handles.

Required Methods§

Source

unsafe fn from_raw(pointer: *mut c_void, sample_count: u32) -> Option<Self>

Try to create a port handle from a port connection pointer and the sample count.

If the pointer is null, this method will return None.

§Safety

Implementing this method requires a de-referentation of a raw pointer and therefore, it is unsafe.

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.

Implementations on Foreign Types§

Source§

impl<T: PortHandle> PortHandle for Option<T>

Source§

unsafe fn from_raw(pointer: *mut c_void, sample_count: u32) -> Option<Self>

Implementors§