pub struct StateWrapper<S, E: Executor> { /* private fields */ }
Implementations§
Source§impl<S, E: Executor> StateWrapper<S, E>
impl<S, E: Executor> StateWrapper<S, E>
pub fn new(state: S, executor: E) -> Self
pub fn borrow_state(&self) -> Ref<'_, S>
pub fn borrow_state_mut(&self) -> RefMut<'_, S>
pub fn get_state(&self) -> Rc<RefCell<S>>
pub fn executor(&self) -> &E
pub fn memory(&self) -> Memory
pub fn recover_state(self) -> Result<S, ()>
Trait Implementations§
Auto Trait Implementations§
impl<S, E> Freeze for StateWrapper<S, E>
impl<S, E> !RefUnwindSafe for StateWrapper<S, E>
impl<S, E> !Send for StateWrapper<S, E>
impl<S, E> !Sync for StateWrapper<S, E>
impl<S, E> Unpin for StateWrapper<S, E>
impl<S, E> !UnwindSafe for StateWrapper<S, E>
Blanket Implementations§
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