Struct LVM
pub struct LVM { /* private fields */ }Expand description
Lyquor Virtual Machine implementation.
Implementations§
§impl LVM
impl LVM
pub fn new( log: Arc<dyn SimpleStateStore>, network: Arc<Hub>, sequencer: Option<Sequencer>, ) -> LVM
pub fn set_sequencer(&mut self, sequencer: Option<Sequencer>)
pub fn contains(&self, id: &LyquidID) -> bool
pub async fn add_instance( &mut self, id: LyquidID, versioned_store: Arc<dyn VersionedStateStore<LyquidNumber>>, simple_store: Arc<dyn SimpleStateStore>, console: Option<Sender<ConsoleOutput>>, bartender: Option<Bartender>, trigger: Option<BoxCloneSyncService<Trigger, (), Error>>, ) -> Result<Arc<Instance<Env>>, Error>
pub fn remove_instance(&mut self, id: &LyquidID)
pub fn get_instance(&self, id: &LyquidID) -> Option<Arc<Instance<Env>>>
pub fn upc(&self) -> &UPC<Error>
pub fn upc_mut(&mut self) -> &mut UPC<Error>
Auto Trait Implementations§
impl Freeze for LVM
impl !RefUnwindSafe for LVM
impl Send for LVM
impl Sync for LVM
impl Unpin for LVM
impl UnsafeUnpin for LVM
impl !UnwindSafe for LVM
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].