#[repr(C)]pub struct LV2_Resize_Port_Resize {
pub data: LV2_Resize_Port_Feature_Data,
pub resize: Option<unsafe extern "C" fn(data: LV2_Resize_Port_Feature_Data, index: u32, size: usize) -> LV2_Resize_Port_Status>,
}Expand description
Host feature to allow plugins to resize their port buffers.
Fields§
§data: LV2_Resize_Port_Feature_DataOpaque data for resize method.
resize: Option<unsafe extern "C" fn(data: LV2_Resize_Port_Feature_Data, index: u32, size: usize) -> LV2_Resize_Port_Status>Resize a port buffer to at least size bytes.
This function MAY return an error, in which case the port buffer was not resized and the port is still connected to the same location. Plugins MUST gracefully handle this situation.
This function is in the audio threading class.
The host MUST preserve the contents of the port buffer when resizing.
Plugins MAY resize a port many times in a single run callback. Hosts SHOULD make this as inexpensive as possible.
Trait Implementations§
Source§impl Clone for LV2_Resize_Port_Resize
impl Clone for LV2_Resize_Port_Resize
Source§fn clone(&self) -> LV2_Resize_Port_Resize
fn clone(&self) -> LV2_Resize_Port_Resize
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LV2_Resize_Port_Resize
impl Debug for LV2_Resize_Port_Resize
impl Copy for LV2_Resize_Port_Resize
Auto Trait Implementations§
impl Freeze for LV2_Resize_Port_Resize
impl RefUnwindSafe for LV2_Resize_Port_Resize
impl !Send for LV2_Resize_Port_Resize
impl !Sync for LV2_Resize_Port_Resize
impl Unpin for LV2_Resize_Port_Resize
impl UnwindSafe for LV2_Resize_Port_Resize
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more