pub struct Runtime<'a> {
pub version: String,
pub ctx: &'a LoggerContext,
pub crypto: &'a dyn Crypto,
pub memory: Rc<RefCell<Memory>>,
}Fields§
§version: String§ctx: &'a LoggerContext§crypto: &'a dyn Crypto§memory: Rc<RefCell<Memory>>Implementations§
Source§impl Runtime<'_>
impl Runtime<'_>
pub fn new_with_crypto_and_logger<'a>( crypto: &'a dyn Crypto, ctx: &'a LoggerContext, ) -> Runtime<'a>
pub fn new() -> Runtime<'static>
pub fn execute(&self, dxb: &[u8]) -> ValueResult
Auto Trait Implementations§
impl<'a> Freeze for Runtime<'a>
impl<'a> !RefUnwindSafe for Runtime<'a>
impl<'a> !Send for Runtime<'a>
impl<'a> !Sync for Runtime<'a>
impl<'a> Unpin for Runtime<'a>
impl<'a> !UnwindSafe for Runtime<'a>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more