Struct Backend
pub struct Backend { /* private fields */ }Expand description
Sequence slots by watching an Ethereum JSON-RPC compatible chain.
Implementations§
§impl Backend
impl Backend
pub fn new(config: Config, client: ClientHandle) -> Self
pub fn client(&self) -> &ClientHandle
Trait Implementations§
§impl SequenceBackend for Backend
impl SequenceBackend for Backend
§fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stop<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Stop streaming. This will terminate the active WebSocket connection gracefully.
§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,
seq: Sequence,
store: Arc<dyn KVStore>,
) -> Result<SequenceBackendRequester, Error>
fn start_lyquid( &mut self, lyquid: &LyquidID, seq: Sequence, store: 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 Backend
impl !RefUnwindSafe for Backend
impl Send for Backend
impl Sync for Backend
impl Unpin for Backend
impl !UnwindSafe for Backend
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> 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> 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