Struct Lyquid
pub struct Lyquid { /* private fields */ }Expand description
Clonable handle for a running Lyquid process.
Implementations§
§impl Lyquid
impl Lyquid
pub fn flush_instance(&self)
pub async fn wait_until(&self, ln: LyquidNumber) -> Result<(), Error>
pub async fn wait_until(&self, ln: LyquidNumber) -> Result<(), Error>
Wait until the lyquid has sequenced past the given ChainPos.
pub async fn get_lyquid_number(
&self,
pos: ChainPos,
) -> Result<Option<LyquidNumber>, Error>
pub async fn get_lyquid_number( &self, pos: ChainPos, ) -> Result<Option<LyquidNumber>, Error>
Get the network state version (LyquidNumber) as of the given chain position. It returns the version identifer for the state after the last sequenced calls at or before the chain position.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Lyquid
impl !RefUnwindSafe for Lyquid
impl Send for Lyquid
impl Sync for Lyquid
impl Unpin for Lyquid
impl !UnwindSafe for Lyquid
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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