pub struct MemoryBootstrapAdmission { /* private fields */ }Expand description
One host-owned admission over the complete sealed declaration snapshot.
The identity must cover the callback’s semantics and configuration. The callback must not open memory or start a second bootstrap. Compose multiple consumers inside this single callback; return the original typed failure on rejection.
Implementations§
Source§impl MemoryBootstrapAdmission
impl MemoryBootstrapAdmission
Sourcepub const fn new(
identity: PolicyIdentity,
prepare: fn(&mut BootstrapAdmission<'_>) -> Result<(), MemoryRegistryError>,
) -> Self
pub const fn new( identity: PolicyIdentity, prepare: fn(&mut BootstrapAdmission<'_>) -> Result<(), MemoryRegistryError>, ) -> Self
Bind the callback to its semantic identity, including any configuration digest.
Trait Implementations§
Source§impl Clone for MemoryBootstrapAdmission
impl Clone for MemoryBootstrapAdmission
Auto Trait Implementations§
impl Freeze for MemoryBootstrapAdmission
impl RefUnwindSafe for MemoryBootstrapAdmission
impl Send for MemoryBootstrapAdmission
impl Sync for MemoryBootstrapAdmission
impl Unpin for MemoryBootstrapAdmission
impl UnsafeUnpin for MemoryBootstrapAdmission
impl UnwindSafe for MemoryBootstrapAdmission
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