Skip to main content

ProbePlugin

Struct ProbePlugin 

Source
pub struct ProbePlugin;
Expand description

A plugin with known return values for vtable verification.

The shell creates this via truce_vtable_probe(), calls every method, and checks the results. If any method returns the wrong value, the vtable is reordered and the dylib is rejected.

Trait Implementations§

Source§

impl PluginLogic for ProbePlugin

Source§

fn new() -> Self

Create a new instance with default state.
Source§

fn reset(&mut self, _sr: f64, _bs: usize)

Reset for a new sample rate / block size.
Source§

fn process( &mut self, _buffer: &mut AudioBuffer<'_>, _events: &EventList, _context: &mut ProcessContext<'_>, ) -> ProcessStatus

Process one block of audio.
Source§

fn render(&self, _backend: &mut dyn RenderBackend)

Render the GUI into the backend. Read more
Source§

fn layout(&self) -> GridLayout

Return the widget layout. Read more
Source§

fn hit_test(&self, _w: &[WidgetRegion], _x: f32, _y: f32) -> Option<usize>

Hit test: which widget (if any) is at (x, y)?
Source§

fn save_state(&self) -> Vec<u8>

Serialize plugin-specific state (DSP state, not params).
Source§

fn load_state(&mut self, _data: &[u8])

Restore plugin-specific state.
Source§

fn latency(&self) -> u32

Report latency in samples.
Source§

fn tail(&self) -> u32

Report tail time in samples.
Source§

fn params_mut(&mut self) -> Option<&mut dyn Params>

Return a mutable reference to the plugin’s Params, if it owns one. Read more
Source§

fn uses_custom_render(&self) -> bool

Whether this plugin uses a custom render() implementation. If false (default), the shell uses BuiltinEditor with standard widget drawing from layout().
Source§

fn custom_editor(&self) -> Option<Box<dyn Editor>>

Provide a custom editor instead of the built-in widget layout. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.