Skip to main content

EmbeddedRun

Struct EmbeddedRun 

Source
pub struct EmbeddedRun {
    pub name: &'static str,
    pub entry: &'static str,
    pub allow: &'static [&'static str],
    pub fuel: Option<u64>,
    pub deadline_nanos: Option<u64>,
    pub max_host_calls: Option<u64>,
    pub max_tasks: Option<u64>,
    pub trace: Option<&'static str>,
    pub files_root: Option<&'static str>,
    pub allow_exec: &'static [&'static str],
}
Expand description

The [run.<name>] table a built binary carries.

Every field was fixed when the binary was built. Nothing reads a cove.toml at run time, so a file placed beside the binary can neither widen its grants nor raise its limits.

Fields§

§name: &'static str

The [run.<name>] table this binary was built from.

§entry: &'static str

The fully qualified entry function, such as hello.main.

§allow: &'static [&'static str]

The capabilities this binary was granted.

§fuel: Option<u64>

The total fuel this binary may spend.

§deadline_nanos: Option<u64>

The wall-clock deadline this binary may take, in nanoseconds.

§max_host_calls: Option<u64>

The total number of host calls this binary may make.

§max_tasks: Option<u64>

The tasks this binary may hold alive at once, across the whole run.

§trace: Option<&'static str>

A path to write a JSONL trace to, or - for stderr.

§files_root: Option<&'static str>

The one directory the files host may reach, as an absolute path chosen at build time. Without one, the binary uses files/ in its working directory.

§allow_exec: &'static [&'static str]

The executables process.run may start.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.