Struct fuel_core::service::adapters::MaybeRelayerAdapter
source · pub struct MaybeRelayerAdapter {
pub database: Database,
}
Fields§
§database: Database
Trait Implementations§
source§impl Clone for MaybeRelayerAdapter
impl Clone for MaybeRelayerAdapter
source§fn clone(&self) -> MaybeRelayerAdapter
fn clone(&self) -> MaybeRelayerAdapter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Relayer for MaybeRelayerAdapter
impl Relayer for MaybeRelayerAdapter
source§fn wait_for_at_least<'life0, 'life1, 'async_trait>(
&'life0 self,
height: &'life1 DaBlockHeight
) -> Pin<Box<dyn Future<Output = Result<DaBlockHeight>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn wait_for_at_least<'life0, 'life1, 'async_trait>( &'life0 self, height: &'life1 DaBlockHeight ) -> Pin<Box<dyn Future<Output = Result<DaBlockHeight>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,
Wait for the relayer to reach at least this height and return the
latest height (which is guaranteed to be >= height).
source§impl RelayerPort for MaybeRelayerAdapter
impl RelayerPort for MaybeRelayerAdapter
source§fn get_message(
&self,
id: &MessageId,
da_height: &DaBlockHeight
) -> Result<Option<CompressedMessage>>
fn get_message( &self, id: &MessageId, da_height: &DaBlockHeight ) -> Result<Option<CompressedMessage>>
Get a message from the relayer if it has been
synced and is <= the given da height.
source§impl RelayerPort for MaybeRelayerAdapter
impl RelayerPort for MaybeRelayerAdapter
source§fn await_until_if_in_range<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
da_height: &'life1 DaBlockHeight,
max_da_lag: &'life2 DaBlockHeight
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn await_until_if_in_range<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, da_height: &'life1 DaBlockHeight, max_da_lag: &'life2 DaBlockHeight ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,
Wait for the relayer to be in sync with the given DA height
if the
da_height
is within the range of the current
relayer sync’d height - max_da_lag
.Auto Trait Implementations§
impl !RefUnwindSafe for MaybeRelayerAdapter
impl Send for MaybeRelayerAdapter
impl Sync for MaybeRelayerAdapter
impl Unpin for MaybeRelayerAdapter
impl !UnwindSafe for MaybeRelayerAdapter
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