Struct oasis_core_runtime::consensus::state::beacon::MutableState
source · pub struct MutableState;
Expand description
Mutable consensus beacon state wrapper.
Implementations§
source§impl MutableState
impl MutableState
sourcepub fn set_epoch_state<S: FallibleMKVS>(
mkvs: &mut S,
epoch_state: EpochTimeState
) -> Result<(), StateError>
pub fn set_epoch_state<S: FallibleMKVS>( mkvs: &mut S, epoch_state: EpochTimeState ) -> Result<(), StateError>
Set current epoch state.
sourcepub fn set_future_epoch_state<S: FallibleMKVS>(
mkvs: &mut S,
epoch_state: EpochTimeState
) -> Result<(), StateError>
pub fn set_future_epoch_state<S: FallibleMKVS>( mkvs: &mut S, epoch_state: EpochTimeState ) -> Result<(), StateError>
Set future epoch state.
Auto Trait Implementations§
impl RefUnwindSafe for MutableState
impl Send for MutableState
impl Sync for MutableState
impl Unpin for MutableState
impl UnwindSafe for MutableState
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