Struct DummyChain
pub struct DummyChain { /* private fields */ }Expand description
A dummy chain for testing purpose.
Implementations§
Trait Implementations§
§impl SequenceBackend for DummyChain
impl SequenceBackend for DummyChain
§fn get_oracle_epoch(&self) -> Recipient<GetOracleEpoch>
fn get_oracle_epoch(&self) -> Recipient<GetOracleEpoch>
Backend-level pull endpoint for oracle epoch/config queries.
§fn start_lyquid(
&mut self,
lyquid: &LyquidID,
sequence: Sequence,
_: Arc<dyn KVStore>,
) -> Result<SequenceBackendRequester, Error>
fn start_lyquid( &mut self, lyquid: &LyquidID, sequence: Sequence, _: Arc<dyn KVStore>, ) -> Result<SequenceBackendRequester, Error>
Start an actor to work on fill slots for the given lyquid. The actor can be stopped by
sending lyquor_api::actor::Stop.
Auto Trait Implementations§
impl Freeze for DummyChain
impl !RefUnwindSafe for DummyChain
impl Send for DummyChain
impl Sync for DummyChain
impl Unpin for DummyChain
impl !UnwindSafe for DummyChain
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
§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> 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