pub enum TrustLevel {
Trusted,
Restricted,
Untrusted,
}Expand description
Whether the chunk may contain authority-bearing constants, and how aggressively the host should treat the module.
Default is TrustLevel::Untrusted (fail closed). Host assemblers that
intentionally embed Cap / Pid / Message in the pool must pass
TrustLevel::Trusted.
TrustLevel::Restricted is the middle tier: same constant-pool denial
as Untrusted (no Cap/Pid/Message injection), but the host may still grant
explicit Caps / natives after load. Elevation is host-only — bytecode
never changes its own trust level.
Variants§
Trusted
Host-controlled module. May embed Cap / Pid / Message in the pool.
Restricted
Untrusted load path with explicit host grants after admission. Constant pool still rejects Cap / Pid / Message (fail closed).
Untrusted
Deny-by-default guest. Constant pool rejects Cap / Pid / Message.
Implementations§
Source§impl TrustLevel
impl TrustLevel
Only [Trusted] may embed authority-bearing constant-pool tags.
Fail-closed tiers that reject Cap / Pid / Message in the pool.
Trait Implementations§
Source§impl Clone for TrustLevel
impl Clone for TrustLevel
impl Copy for TrustLevel
Source§impl Debug for TrustLevel
impl Debug for TrustLevel
impl Eq for TrustLevel
Source§impl PartialEq for TrustLevel
impl PartialEq for TrustLevel
impl StructuralPartialEq for TrustLevel
Auto Trait Implementations§
impl Forget for TrustLevel
impl Freeze for TrustLevel
impl Move for TrustLevel
impl RefUnwindSafe for TrustLevel
impl Send for TrustLevel
impl Sync for TrustLevel
impl Unpin for TrustLevel
impl UnsafeUnpin for TrustLevel
impl UnwindSafe for TrustLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.