pub struct RegisteredInterface {
pub name: &'static str,
pub version: u8,
}Expand description
One (name, version) pair that a plugin’s #[plugin_interface]
attribute declared. Collected at link time via inventory.
Fields§
§name: &'static strWire name the plugin advertises via cfmp_query_interfaces.
This is the name the loader’s registry (PluginInterfaceKind)
recognizes — e.g. "hash", "symmetric" (not "cipher").
version: u8Version of the wire protocol the plugin implements.
Trait Implementations§
impl Collect for RegisteredInterface
Auto Trait Implementations§
impl Freeze for RegisteredInterface
impl RefUnwindSafe for RegisteredInterface
impl Send for RegisteredInterface
impl Sync for RegisteredInterface
impl Unpin for RegisteredInterface
impl UnsafeUnpin for RegisteredInterface
impl UnwindSafe for RegisteredInterface
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