[][src]Trait lv2::prelude::PortHandle

pub trait PortHandle {
    unsafe fn from_raw(pointer: *mut c_void, sample_count: u32) -> Option<Self>;
}

Abstraction of safe port handles.

Required methods

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.

Loading content...

Implementations on Foreign Types

impl<T> PortHandle for Option<T> where
    T: PortHandle
[src]

Loading content...

Implementors

impl<T> PortHandle for InputPort<T> where
    T: PortType
[src]

impl<T> PortHandle for OutputPort<T> where
    T: PortType
[src]

Loading content...