pub struct RunParameters {
    pub init_peer_id: String,
    pub current_peer_id: String,
    pub timestamp: u64,
    pub ttl: u32,
    pub key_format: u8,
    pub secret_key_bytes: Vec<u8>,
    pub particle_id: String,
    pub air_size_limit: u64,
    pub particle_size_limit: u64,
    pub call_result_size_limit: u64,
    pub hard_limit_enabled: bool,
}
Expand description

Parameters that a host side should pass to an interpreter and that necessary for execution.

Fields§

§init_peer_id: String

Peer id of a peer that start this particle.

§current_peer_id: String

Peer id of a current peer.

§timestamp: u64

Unix timestamp from a particle in milliseconds. It represents time when this particle was sent from the init peer id.

§ttl: u32

TTL set by init peer id in milliseconds.

§key_format: u8

A key format.

This value is the result of fluence_keypair::KeyType::into.

§secret_key_bytes: Vec<u8>

A secret key material.

The value is the result fluence_keypair::KeyPair::secret, for compatibility with JS client who can only serialize to secret key, not to keypair.

§particle_id: String

Unique particle ID.

§air_size_limit: u64

The AIR script size limit.

§particle_size_limit: u64

The particle data size limit.

§call_result_size_limit: u64

This is the limit for the size of service call result.

§hard_limit_enabled: bool

This knob controls hard RAM limits behavior for AVMRunner.

Implementations§

source§

impl RunParameters

source

pub fn new( init_peer_id: String, current_peer_id: String, timestamp: u64, ttl: u32, key_format: u8, secret_key_bytes: Vec<u8>, particle_id: String, air_size_limit: u64, particle_size_limit: u64, call_result_size_limit: u64, hard_limit_enabled: bool ) -> Self

source

pub fn into_ivalue(self) -> IValue

Trait Implementations§

source§

impl Clone for RunParameters

source§

fn clone(&self) -> RunParameters

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for RunParameters

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de> Deserialize<'de> for RunParameters

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl PartialEq for RunParameters

source§

fn eq(&self, other: &RunParameters) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Serialize for RunParameters

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl Eq for RunParameters

source§

impl StructuralPartialEq for RunParameters

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> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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.
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,