Struct oasis_runtime_sdk::testing::mock::EmptyRuntime
source · pub struct EmptyRuntime;
Expand description
A mock runtime that only has the core module.
Trait Implementations§
source§impl Runtime for EmptyRuntime
impl Runtime for EmptyRuntime
source§fn genesis_state() -> <Self::Modules as MigrationHandler>::Genesis
fn genesis_state() -> <Self::Modules as MigrationHandler>::Genesis
Genesis state for the runtime.
source§const STATE_VERSION: u32 = 0u32
const STATE_VERSION: u32 = 0u32
State version.
source§const PREFETCH_LIMIT: u16 = 0u16
const PREFETCH_LIMIT: u16 = 0u16
Prefetch limit. To enable prefetch set it to a non-zero value.
source§const SCHEDULE_CONTROL: ScheduleControl = _
const SCHEDULE_CONTROL: ScheduleControl = _
Runtime schedule control configuration.
source§fn trusted_signers() -> Option<TrustedSigners>
fn trusted_signers() -> Option<TrustedSigners>
Return the trusted signers for this runtime; if
None
, a key manager connection will not be
established on startup.source§fn consensus_trust_root() -> Option<TrustRoot>
fn consensus_trust_root() -> Option<TrustRoot>
Return the consensus layer trust root for this runtime; if
None
, consensus layer integrity
verification will not be performed.source§fn migrate_state<C: Context>(_ctx: &C)
fn migrate_state<C: Context>(_ctx: &C)
Perform runtime-specific state migration. This method is only called when the recorded
state version does not match
STATE_VERSION
.source§fn is_allowed_query(_method: &str) -> bool
fn is_allowed_query(_method: &str) -> bool
Whether a given query method is allowed to be invoked.
source§fn is_allowed_private_km_query(_method: &str) -> bool
fn is_allowed_private_km_query(_method: &str) -> bool
Whether a given query method is allowed to access private key manager state. Read more
Auto Trait Implementations§
impl Freeze for EmptyRuntime
impl RefUnwindSafe for EmptyRuntime
impl Send for EmptyRuntime
impl Sync for EmptyRuntime
impl Unpin for EmptyRuntime
impl UnwindSafe for EmptyRuntime
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