pub struct PluginConfig { /* private fields */ }Expand description
Configuration for building an OP-TEE supplicant plugin binding.
Holds the plugin name, UUID, init/invoke function names, and optional
output destination. Use the builder-style API (with_* methods) to
customize defaults, then call PluginConfig::build to generate the
plugin_static.rs file.
Implementations§
Source§impl PluginConfig
impl PluginConfig
Sourcepub fn new(uuid: Uuid) -> Self
pub fn new(uuid: Uuid) -> Self
Creates a new PluginConfig with the given UUID.
The plugin name defaults to CARGO_PKG_NAME, and the init/invoke
function names default to DEFAULT_INIT_FN_NAME and
DEFAULT_INVOKE_FN_NAME respectively.
Sourcepub fn with_init_fn_name(self, fn_name: &str) -> Self
pub fn with_init_fn_name(self, fn_name: &str) -> Self
Sets a custom init function name (overriding DEFAULT_INIT_FN_NAME).
Sourcepub fn with_invoke_fn_name(self, fn_name: &str) -> Self
pub fn with_invoke_fn_name(self, fn_name: &str) -> Self
Sets a custom invoke function name (overriding DEFAULT_INVOKE_FN_NAME).
Auto Trait Implementations§
impl Freeze for PluginConfig
impl RefUnwindSafe for PluginConfig
impl Send for PluginConfig
impl Sync for PluginConfig
impl Unpin for PluginConfig
impl UnsafeUnpin for PluginConfig
impl UnwindSafe for PluginConfig
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