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
impl PluginLogic for ProbePlugin
Source§fn process(
&mut self,
_buffer: &mut AudioBuffer<'_>,
_events: &EventList,
_context: &mut ProcessContext<'_>,
) -> ProcessStatus
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)
fn render(&self, _backend: &mut dyn RenderBackend)
Render the GUI into the backend. Read more
Source§fn layout(&self) -> GridLayout
fn layout(&self) -> GridLayout
Return the widget layout. Read more
Source§fn hit_test(&self, _w: &[WidgetRegion], _x: f32, _y: f32) -> Option<usize>
fn hit_test(&self, _w: &[WidgetRegion], _x: f32, _y: f32) -> Option<usize>
Hit test: which widget (if any) is at (x, y)?
Source§fn load_state(&mut self, _data: &[u8])
fn load_state(&mut self, _data: &[u8])
Restore plugin-specific state.
Source§fn params_mut(&mut self) -> Option<&mut dyn Params>
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
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().
Auto Trait Implementations§
impl Freeze for ProbePlugin
impl RefUnwindSafe for ProbePlugin
impl Send for ProbePlugin
impl Sync for ProbePlugin
impl Unpin for ProbePlugin
impl UnsafeUnpin for ProbePlugin
impl UnwindSafe for ProbePlugin
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