pub struct PluginHostBuilder { /* private fields */ }Expand description
Builder for configuring a PluginHost.
Implementations§
Source§impl PluginHostBuilder
impl PluginHostBuilder
Sourcepub fn search_path(self, path: impl Into<PathBuf>) -> Self
pub fn search_path(self, path: impl Into<PathBuf>) -> Self
Add a directory to search for plugin dylibs.
Sourcepub fn load_policy(self, policy: LoadPolicy) -> Self
pub fn load_policy(self, policy: LoadPolicy) -> Self
Set the load policy (Strict or Lenient).
Sourcepub fn require_signature(self, require: bool) -> Self
pub fn require_signature(self, require: bool) -> Self
Require plugins to have valid signatures.
Sourcepub fn trusted_keys(self, keys: &[VerifyingKey]) -> Self
pub fn trusted_keys(self, keys: &[VerifyingKey]) -> Self
Set trusted Ed25519 public keys for signature verification.
Sourcepub fn interface_hash(self, hash: u64) -> Self
pub fn interface_hash(self, hash: u64) -> Self
Set the expected interface hash for validation.
Sourcepub fn buffer_strategy(self, strategy: BufferStrategyKind) -> Self
pub fn buffer_strategy(self, strategy: BufferStrategyKind) -> Self
Set the expected buffer strategy for validation.
Sourcepub fn build(self) -> Result<PluginHost, LoadError>
pub fn build(self) -> Result<PluginHost, LoadError>
Build the PluginHost.
Auto Trait Implementations§
impl Freeze for PluginHostBuilder
impl RefUnwindSafe for PluginHostBuilder
impl Send for PluginHostBuilder
impl Sync for PluginHostBuilder
impl Unpin for PluginHostBuilder
impl UnsafeUnpin for PluginHostBuilder
impl UnwindSafe for PluginHostBuilder
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