Struct oasis_runtime_sdk::state::Options
source · pub struct Options {
pub mode: Option<Mode>,
pub tx: Option<TransactionWithMeta>,
pub internal: Option<bool>,
pub rng_local_entropy: bool,
}
Expand description
Environment modification options.
Fields§
§mode: Option<Mode>
§tx: Option<TransactionWithMeta>
§internal: Option<bool>
§rng_local_entropy: bool
Implementations§
source§impl Options
impl Options
sourcepub fn with_tx(self, tx: TransactionWithMeta) -> Self
pub fn with_tx(self, tx: TransactionWithMeta) -> Self
Change the active transaction of the environment.
sourcepub fn with_internal(self, internal: bool) -> Self
pub fn with_internal(self, internal: bool) -> Self
Change the internal flag of the environment.
sourcepub fn with_rng_local_entropy(self) -> Self
pub fn with_rng_local_entropy(self) -> Self
Request for local entropy to be mixed into the current RNG.
§Determinisim
Using this method will result in non-deterministic behavior as the node’s local entropy is mixed into the RNG. As such, this method should only be used in cases where non-determinism is not problematic (e.g. local queries).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)