Struct AdmittedSource
pub struct AdmittedSource { /* private fields */ }Expand description
A source that passed admission and is ready to install: see
PluginHost::admit_source. It carries the exact manifest and component
bytes admission read, so a caller can load-check them and
PluginHost::install_admitted then persists those same bytes.
Implementations§
Source§impl AdmittedSource
impl AdmittedSource
Sourcepub fn manifest(&self) -> &PluginManifest
pub fn manifest(&self) -> &PluginManifest
The admitted manifest.
Sourcepub fn manifest_toml(&self) -> &str
pub fn manifest_toml(&self) -> &str
The manifest text admission parsed and checked against the signature
policy. PluginHost::install_admitted writes these bytes, so a
signature checked against them is checked against what gets installed.
Sourcepub fn component(&self) -> Option<&AdmittedComponent>
pub fn component(&self) -> Option<&AdmittedComponent>
The admitted component to load-check, or None for a package that
ships no WASM. These are the bytes PluginHost::install_admitted
writes, so a check against them is a check of what gets installed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AdmittedSource
impl RefUnwindSafe for AdmittedSource
impl Send for AdmittedSource
impl Sync for AdmittedSource
impl Unpin for AdmittedSource
impl UnsafeUnpin for AdmittedSource
impl UnwindSafe for AdmittedSource
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