pub struct DynamicAdmission {
pub read_policy: ReadPolicy,
pub requires: Vec<CapabilityName>,
pub allow: CapabilitySet,
pub expected_shape: Arc<dyn Shape>,
}Expand description
Host-authored authority envelope for dynamic Python source.
Fields§
§read_policy: ReadPolicyTrusted read policy; source text cannot create this value.
requires: Vec<CapabilityName>Powers the caller must hold.
allow: CapabilitySetDiminished powers visible while decoding and evaluating.
expected_shape: Arc<dyn Shape>Shape required of the resulting value.
Implementations§
Source§impl DynamicAdmission
impl DynamicAdmission
Sourcepub fn new(read_policy: ReadPolicy, allow: CapabilitySet) -> Self
pub fn new(read_policy: ReadPolicy, allow: CapabilitySet) -> Self
Build an admission envelope requiring only the canonical read-eval power.
Auto Trait Implementations§
impl !RefUnwindSafe for DynamicAdmission
impl !UnwindSafe for DynamicAdmission
impl Freeze for DynamicAdmission
impl Send for DynamicAdmission
impl Sync for DynamicAdmission
impl Unpin for DynamicAdmission
impl UnsafeUnpin for DynamicAdmission
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