pub struct PythonInterfaceDescriptor {
pub interface_name: &'static str,
pub interface_hash: u64,
pub methods: &'static [PythonMethodDesc],
}Expand description
Static descriptor for one fidius interface, consumed by the Python loader to validate and dispatch into a Python plugin.
Fields§
§interface_name: &'static strTrait name, used for diagnostics only.
interface_hash: u64Same hash the cdylib path baked into its PluginDescriptor. The
Python plugin’s __interface_hash__ constant must match this.
methods: &'static [PythonMethodDesc]Methods in declaration order — the index here lines up with the
vtable index the cdylib path uses for the same trait. The Python
loader looks up callables in this order so call_method(i, ...)
dispatches to the right Python function.
Trait Implementations§
Source§impl Clone for PythonInterfaceDescriptor
impl Clone for PythonInterfaceDescriptor
Source§fn clone(&self) -> PythonInterfaceDescriptor
fn clone(&self) -> PythonInterfaceDescriptor
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 PythonInterfaceDescriptor
impl Debug for PythonInterfaceDescriptor
impl Copy for PythonInterfaceDescriptor
Auto Trait Implementations§
impl Freeze for PythonInterfaceDescriptor
impl RefUnwindSafe for PythonInterfaceDescriptor
impl Send for PythonInterfaceDescriptor
impl Sync for PythonInterfaceDescriptor
impl Unpin for PythonInterfaceDescriptor
impl UnsafeUnpin for PythonInterfaceDescriptor
impl UnwindSafe for PythonInterfaceDescriptor
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