pub struct DiscoveredPlugin {
pub manifest: PluginManifest,
pub package_dir: PathBuf,
pub manifest_path: PathBuf,
pub module_path: PathBuf,
}Expand description
A validated package whose files are safe to read.
Fields§
§manifest: PluginManifest§package_dir: PathBuf§manifest_path: PathBuf§module_path: PathBufImplementations§
Source§impl DiscoveredPlugin
impl DiscoveredPlugin
Sourcepub fn read_module(
&self,
limits: DiscoveryLimits,
) -> Result<Vec<u8>, PluginError>
pub fn read_module( &self, limits: DiscoveryLimits, ) -> Result<Vec<u8>, PluginError>
Read the module after re-checking its type and size. Re-checking closes the common accidental replacement window between discovery and load; signature verification remains the authoritative tamper gate.
Trait Implementations§
Source§impl Clone for DiscoveredPlugin
impl Clone for DiscoveredPlugin
Source§fn clone(&self) -> DiscoveredPlugin
fn clone(&self) -> DiscoveredPlugin
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for DiscoveredPlugin
impl RefUnwindSafe for DiscoveredPlugin
impl Send for DiscoveredPlugin
impl Sync for DiscoveredPlugin
impl Unpin for DiscoveredPlugin
impl UnsafeUnpin for DiscoveredPlugin
impl UnwindSafe for DiscoveredPlugin
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