pub struct Profile {
pub name: &'static str,
/* private fields */
}Expand description
Which capabilities an interpreter is allowed to be given.
Fields§
§name: &'static strImplementations§
Source§impl Profile
impl Profile
Sourcepub fn ambient() -> Self
pub fn ambient() -> Self
Everything. The historical behaviour of install_stdlib, kept as
the explicit default so no existing embedder changes shape.
Sourcepub fn sealed() -> Self
pub fn sealed() -> Self
Computation only — nothing that reaches outside the process, and nothing that observes the clock or the random pool.
This is the profile for evaluating source you did not write.
Sourcepub fn sealed_nondeterministic() -> Self
pub fn sealed_nondeterministic() -> Self
Sealed, plus clock and randomness. For a renderer that may stamp a timestamp but must not reach the filesystem or the network.
pub fn allows(&self, c: Capability) -> bool
Trait Implementations§
impl Eq for Profile
impl StructuralPartialEq for Profile
Auto Trait Implementations§
impl Freeze for Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.